Delegate ClusterMemberAnnouncer<TAddress>
Represents a delegate that implements cluster node announcement logic.
Assembly: DotNext.Net.Cluster.dll
Syntax
public delegate Task ClusterMemberAnnouncer<in TAddress>(TAddress address, IReadOnlyDictionary<string, string> metadata, CancellationToken token)
Parameters
| Type |
Name |
Description |
| TAddress |
address |
The address of the cluster member.
|
| IReadOnlyDictionary<string, string> |
metadata |
The metadata associated with a cluster member.
|
| CancellationToken |
token |
The token that can be used to cancel the operation.
|
Returns
| Type |
Description |
| Task |
The task representing asynchronous result.
|
Type Parameters
| Name |
Description |
| TAddress |
The type of the node address.
|
Constructors
View Source
ClusterMemberAnnouncer(object, nint)
Declaration
public ClusterMemberAnnouncer(object @object, nint method)
Parameters
Methods
View Source
BeginInvoke(TAddress, IReadOnlyDictionary<string, string>, CancellationToken, AsyncCallback, object)
Declaration
public virtual IAsyncResult BeginInvoke(TAddress address, IReadOnlyDictionary<string, string> metadata, CancellationToken token, AsyncCallback callback, object @object)
Parameters
Returns
View Source
EndInvoke(IAsyncResult)
Declaration
public virtual Task EndInvoke(IAsyncResult result)
Parameters
Returns
View Source
Invoke(TAddress, IReadOnlyDictionary<string, string>, CancellationToken)
Declaration
public virtual Task Invoke(TAddress address, IReadOnlyDictionary<string, string> metadata, CancellationToken token)
Parameters
Returns
Extension Methods