Show / Hide Table of Contents

Delegate ClusterMemberAnnouncer<TAddress>

Represents a delegate that implements cluster node announcement logic.

Namespace: DotNext.Net.Cluster.Consensus.Raft.Membership
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
Type Name Description
object object
nint method

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
Type Name Description
TAddress address
IReadOnlyDictionary<string, string> metadata
CancellationToken token
AsyncCallback callback
object object
Returns
Type Description
IAsyncResult
View Source

EndInvoke(IAsyncResult)

Declaration
public virtual Task EndInvoke(IAsyncResult result)
Parameters
Type Name Description
IAsyncResult result
Returns
Type Description
Task
View Source

Invoke(TAddress, IReadOnlyDictionary<string, string>, CancellationToken)

Declaration
public virtual Task Invoke(TAddress address, IReadOnlyDictionary<string, string> metadata, CancellationToken token)
Parameters
Type Name Description
TAddress address
IReadOnlyDictionary<string, string> metadata
CancellationToken token
Returns
Type Description
Task

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
DelegateHelpers.ChangeType<TDelegate>(Delegate)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾