Class Watch.WatchClient
Client for Watch
Inheritance
Namespace: Etcdserverpb
Assembly: cs.temp.dll.dll
Syntax
public class WatchClient : grpc.ClientBase<Watch.WatchClient>
Constructors
WatchClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected WatchClient()
WatchClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected WatchClient(ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBaseConfiguration | configuration | The client configuration. |
WatchClient(grpc.CallInvoker)
Creates a new client for Watch that uses a custom CallInvoker
.
Declaration
public WatchClient(grpc.CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
grpc.CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
WatchClient(grpc.Channel)
Creates a new client for Watch
Declaration
public WatchClient(grpc.Channel channel)
Parameters
Type | Name | Description |
---|---|---|
grpc.Channel | channel | The channel to use to make remote calls. |
Methods
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override Watch.WatchClient NewInstance(ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
Watch.WatchClient |
Watch(grpc.CallOptions)
Watch watches for events happening or that have happened. Both input and output are streams; the input stream is for creating and canceling watchers and the output stream sends events. One watch RPC can watch on multiple key ranges, streaming events for several watches at once. The entire event history can be watched starting from the last compaction revision.
Declaration
public virtual grpc.AsyncDuplexStreamingCall<WatchRequest, WatchResponse> Watch(grpc.CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
grpc.CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
grpc.AsyncDuplexStreamingCall<WatchRequest, WatchResponse> | The call object. |
Watch(grpc.Metadata, Nullable<DateTime>, CancellationToken)
Watch watches for events happening or that have happened. Both input and output are streams; the input stream is for creating and canceling watchers and the output stream sends events. One watch RPC can watch on multiple key ranges, streaming events for several watches at once. The entire event history can be watched starting from the last compaction revision.
Declaration
public virtual grpc.AsyncDuplexStreamingCall<WatchRequest, WatchResponse> Watch(grpc.Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
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.AsyncDuplexStreamingCall<WatchRequest, WatchResponse> | The call object. |