Table of Contents

Interface ISmartLifecycle

Namespace
Steeltoe.Common.Lifecycle
Assembly
Steeltoe.Common.Abstractions.dll

An extension of the Lifecycle interface that provides auto startup and a call back stop action

public interface ISmartLifecycle : ILifecycle, IPhased
Inherited Members

Properties

IsAutoStartup

Gets a value indicating whether the auto startup is set for this object

bool IsAutoStartup { get; }

Property Value

bool

Methods

Stop(Action)

Stop the component and issue the callback when complete

Task Stop(Action callback)

Parameters

callback Action

the callback action to invoke when complete

Returns

Task

a task for completion