Class Cluster.ClusterClient
Client for Cluster
Inheritance
Namespace: Etcdserverpb
Assembly: cs.temp.dll.dll
Syntax
public class ClusterClient : grpc.ClientBase<Cluster.ClusterClient>
Constructors
ClusterClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected ClusterClient()
ClusterClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected ClusterClient(ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBaseConfiguration | configuration | The client configuration. |
ClusterClient(grpc.CallInvoker)
Creates a new client for Cluster that uses a custom CallInvoker
.
Declaration
public ClusterClient(grpc.CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
grpc.CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
ClusterClient(grpc.Channel)
Creates a new client for Cluster
Declaration
public ClusterClient(grpc.Channel channel)
Parameters
Type | Name | Description |
---|---|---|
grpc.Channel | channel | The channel to use to make remote calls. |
Methods
MemberAdd(MemberAddRequest, grpc.CallOptions)
MemberAdd adds a member into the cluster.
Declaration
public virtual MemberAddResponse MemberAdd(MemberAddRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberAddRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
MemberAddResponse | The response received from the server. |
MemberAdd(MemberAddRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberAdd adds a member into the cluster.
Declaration
public virtual MemberAddResponse MemberAdd(MemberAddRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberAddRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
MemberAddResponse | The response received from the server. |
MemberAddAsync(MemberAddRequest, grpc.CallOptions)
MemberAdd adds a member into the cluster.
Declaration
public virtual grpc.AsyncUnaryCall<MemberAddResponse> MemberAddAsync(MemberAddRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberAddRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberAddResponse> | The call object. |
MemberAddAsync(MemberAddRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberAdd adds a member into the cluster.
Declaration
public virtual grpc.AsyncUnaryCall<MemberAddResponse> MemberAddAsync(MemberAddRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberAddRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberAddResponse> | The call object. |
MemberList(MemberListRequest, grpc.CallOptions)
MemberList lists all the members in the cluster.
Declaration
public virtual MemberListResponse MemberList(MemberListRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberListRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
MemberListResponse | The response received from the server. |
MemberList(MemberListRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberList lists all the members in the cluster.
Declaration
public virtual MemberListResponse MemberList(MemberListRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberListRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
MemberListResponse | The response received from the server. |
MemberListAsync(MemberListRequest, grpc.CallOptions)
MemberList lists all the members in the cluster.
Declaration
public virtual grpc.AsyncUnaryCall<MemberListResponse> MemberListAsync(MemberListRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberListRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberListResponse> | The call object. |
MemberListAsync(MemberListRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberList lists all the members in the cluster.
Declaration
public virtual grpc.AsyncUnaryCall<MemberListResponse> MemberListAsync(MemberListRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberListRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberListResponse> | The call object. |
MemberRemove(MemberRemoveRequest, grpc.CallOptions)
MemberRemove removes an existing member from the cluster.
Declaration
public virtual MemberRemoveResponse MemberRemove(MemberRemoveRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberRemoveRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
MemberRemoveResponse | The response received from the server. |
MemberRemove(MemberRemoveRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberRemove removes an existing member from the cluster.
Declaration
public virtual MemberRemoveResponse MemberRemove(MemberRemoveRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberRemoveRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
MemberRemoveResponse | The response received from the server. |
MemberRemoveAsync(MemberRemoveRequest, grpc.CallOptions)
MemberRemove removes an existing member from the cluster.
Declaration
public virtual grpc.AsyncUnaryCall<MemberRemoveResponse> MemberRemoveAsync(MemberRemoveRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberRemoveRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberRemoveResponse> | The call object. |
MemberRemoveAsync(MemberRemoveRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberRemove removes an existing member from the cluster.
Declaration
public virtual grpc.AsyncUnaryCall<MemberRemoveResponse> MemberRemoveAsync(MemberRemoveRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberRemoveRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberRemoveResponse> | The call object. |
MemberUpdate(MemberUpdateRequest, grpc.CallOptions)
MemberUpdate updates the member configuration.
Declaration
public virtual MemberUpdateResponse MemberUpdate(MemberUpdateRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberUpdateRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
MemberUpdateResponse | The response received from the server. |
MemberUpdate(MemberUpdateRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberUpdate updates the member configuration.
Declaration
public virtual MemberUpdateResponse MemberUpdate(MemberUpdateRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberUpdateRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
MemberUpdateResponse | The response received from the server. |
MemberUpdateAsync(MemberUpdateRequest, grpc.CallOptions)
MemberUpdate updates the member configuration.
Declaration
public virtual grpc.AsyncUnaryCall<MemberUpdateResponse> MemberUpdateAsync(MemberUpdateRequest request, grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
MemberUpdateRequest | request | The request to send to the server. |
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberUpdateResponse> | The call object. |
MemberUpdateAsync(MemberUpdateRequest, grpc.Metadata, Nullable<DateTime>, CancellationToken)
MemberUpdate updates the member configuration.
Declaration
public virtual grpc.AsyncUnaryCall<MemberUpdateResponse> MemberUpdateAsync(MemberUpdateRequest request, grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
MemberUpdateRequest | request | The request to send to the server. |
grpc.Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
grpc.AsyncUnaryCall<MemberUpdateResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override Cluster.ClusterClient NewInstance(ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
Cluster.ClusterClient |