Class AbstractEndpoint
- Namespace
- Steeltoe.Integration.Endpoint
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public abstract class AbstractEndpoint : ISmartLifecycle, ILifecycle, IPhased, IServiceNameAware
- Inheritance
-
AbstractEndpoint
- Implements
- Derived
- Inherited Members
Constructors
AbstractEndpoint(IApplicationContext)
protected AbstractEndpoint(IApplicationContext context)
Parameters
context
IApplicationContext
Properties
ApplicationContext
public IApplicationContext ApplicationContext { get; }
Property Value
ComponentName
public virtual string ComponentName { get; set; }
Property Value
ComponentType
public virtual string ComponentType { get; set; }
Property Value
IntegrationServices
public IIntegrationServices IntegrationServices { get; }
Property Value
IsAutoStartup
Gets a value indicating whether the auto startup is set for this object
public bool IsAutoStartup { get; set; }
Property Value
IsRunning
Gets a value indicating whether gets a value indicating if its running
public bool IsRunning { get; set; }
Property Value
Phase
Gets the phase of this object
public int Phase { get; set; }
Property Value
ServiceName
public virtual string ServiceName { get; set; }
Property Value
Methods
DoStart()
protected abstract Task DoStart()
Returns
DoStop()
protected abstract Task DoStop()
Returns
DoStop(Action)
protected virtual Task DoStop(Action callback)
Parameters
callback
Action
Returns
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
Stop(Action)
Stop the component and issue the callback when complete
public Task Stop(Action callback)
Parameters
callback
Actionthe callback action to invoke when complete
Returns
- Task
a task for completion