Table of Contents

Class DefaultLifecycleProcessor

Namespace
Steeltoe.Common.Lifecycle
Assembly
Steeltoe.Common.dll
public class DefaultLifecycleProcessor : ILifecycleProcessor, IDisposable
Inheritance
DefaultLifecycleProcessor
Implements
Inherited Members

Constructors

DefaultLifecycleProcessor(IApplicationContext, ILogger)

public DefaultLifecycleProcessor(IApplicationContext context, ILogger logger = null)

Parameters

context IApplicationContext
logger ILogger

Properties

IsRunning

Gets a value indicating whether gets a value indicating if its running

public bool IsRunning { get; set; }

Property Value

bool

TimeoutPerShutdownPhase

public int TimeoutPerShutdownPhase { get; set; }

Property Value

int

Methods

Dispose()

public void Dispose()

OnClose()

Call to shutdown the lifecycle processor

public Task OnClose()

Returns

Task

a task to signal completion

OnRefresh()

Call to refresh the lifecycle processor

public Task OnRefresh()

Returns

Task

a task to signal completion

Start()

Start this component

public Task Start()

Returns

Task

a task to signal completion

Stop()

Stop this component

public Task Stop()

Returns

Task

a task to signal completion