Interface IPeerLifetime
Allows to capture peer lifecycle events.
Namespace: DotNext.Net.Cluster.Discovery.HyParView
Assembly: DotNext.AspNetCore.Cluster.dll
Syntax
public interface IPeerLifetime
Remarks
The service of this type must be registered in DI to be associated with PeerController lifecycle.
Methods
View SourceOnStart(PeerController)
Called automatically when the peer controller has started.
Declaration
void OnStart(PeerController controller)
Parameters
| Type | Name | Description |
|---|---|---|
| PeerController | controller | The started peer controller. |
OnStop(PeerController)
Called automatically when the peer controller is about to be stopped.
Declaration
void OnStop(PeerController controller)
Parameters
| Type | Name | Description |
|---|---|---|
| PeerController | controller | The stopped peer controller. |