Class AuthCallInvoker
grpc CallInvoker to handler etcd v3 auth, base on Grpc.Core.DefaultCallInvoker
Namespace: ETCD.V3
Assembly: cs.temp.dll.dll
Syntax
public class AuthCallInvoker : DefaultCallInvoker
Constructors
AuthCallInvoker(Channel)
new instance of grpc CallInvoker to handler etcd v3 auth
Declaration
public AuthCallInvoker(Channel channel)
Parameters
Type | Name | Description |
---|---|---|
Channel | channel | Channel to use. |
Properties
Token
etcd v3 auth token
Declaration
public Metadata.Entry Token { get; set; }
Property Value
Type | Description |
---|---|
Metadata.Entry |
Methods
CreateCall<TRequest, TResponse>(Method<TRequest, TResponse>, String, CallOptions)
Creates call invocation details for given method, will add etcd v3 auth token if have.
Declaration
protected override CallInvocationDetails<TRequest, TResponse> CreateCall<TRequest, TResponse>(Method<TRequest, TResponse> method, string host, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Method<TRequest, TResponse> | method | A description of a remote method. |
System.String | host | host |
CallOptions | options | CallOptions |
Returns
Type | Description |
---|---|
CallInvocationDetails<TRequest, TResponse> |
Type Parameters
Name | Description |
---|---|
TRequest | Request type |
TResponse | Response type |