• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Authpb
    • AuthReflection
    • Permission
    • Permission.Types
    • Permission.Types.Type
    • Role
    • User
  • ETCD.V3
    • AuthCallInvoker
    • AuthExtensions
    • Client
    • ClusterExtensions
    • Constants
    • KVExtensions
    • LeaseExtensions
    • MaintenanceExtensions
    • WatchExtensions
  • Etcdserverpb
    • AlarmMember
    • AlarmRequest
    • AlarmRequest.Types
    • AlarmRequest.Types.AlarmAction
    • AlarmResponse
    • AlarmType
    • Auth
    • Auth.AuthBase
    • Auth.AuthClient
    • AuthDisableRequest
    • AuthDisableResponse
    • AuthEnableRequest
    • AuthEnableResponse
    • AuthenticateRequest
    • AuthenticateResponse
    • AuthRoleAddRequest
    • AuthRoleAddResponse
    • AuthRoleDeleteRequest
    • AuthRoleDeleteResponse
    • AuthRoleGetRequest
    • AuthRoleGetResponse
    • AuthRoleGrantPermissionRequest
    • AuthRoleGrantPermissionResponse
    • AuthRoleListRequest
    • AuthRoleListResponse
    • AuthRoleRevokePermissionRequest
    • AuthRoleRevokePermissionResponse
    • AuthUserAddRequest
    • AuthUserAddResponse
    • AuthUserChangePasswordRequest
    • AuthUserChangePasswordResponse
    • AuthUserDeleteRequest
    • AuthUserDeleteResponse
    • AuthUserGetRequest
    • AuthUserGetResponse
    • AuthUserGrantRoleRequest
    • AuthUserGrantRoleResponse
    • AuthUserListRequest
    • AuthUserListResponse
    • AuthUserRevokeRoleRequest
    • AuthUserRevokeRoleResponse
    • Cluster
    • Cluster.ClusterBase
    • Cluster.ClusterClient
    • CompactionRequest
    • CompactionResponse
    • Compare
    • Compare.TargetUnionOneofCase
    • Compare.Types
    • Compare.Types.CompareResult
    • Compare.Types.CompareTarget
    • DefragmentRequest
    • DefragmentResponse
    • DeleteRangeRequest
    • DeleteRangeResponse
    • HashRequest
    • HashResponse
    • KV
    • KV.KVBase
    • KV.KVClient
    • Lease
    • Lease.LeaseBase
    • Lease.LeaseClient
    • LeaseGrantRequest
    • LeaseGrantResponse
    • LeaseKeepAliveRequest
    • LeaseKeepAliveResponse
    • LeaseRevokeRequest
    • LeaseRevokeResponse
    • LeaseTimeToLiveRequest
    • LeaseTimeToLiveResponse
    • Maintenance
    • Maintenance.MaintenanceBase
    • Maintenance.MaintenanceClient
    • Member
    • MemberAddRequest
    • MemberAddResponse
    • MemberListRequest
    • MemberListResponse
    • MemberRemoveRequest
    • MemberRemoveResponse
    • MemberUpdateRequest
    • MemberUpdateResponse
    • PutRequest
    • PutResponse
    • RangeRequest
    • RangeRequest.Types
    • RangeRequest.Types.SortOrder
    • RangeRequest.Types.SortTarget
    • RangeResponse
    • RequestOp
    • RequestOp.RequestOneofCase
    • ResponseHeader
    • ResponseOp
    • ResponseOp.ResponseOneofCase
    • RpcReflection
    • SnapshotRequest
    • SnapshotResponse
    • StatusRequest
    • StatusResponse
    • TxnRequest
    • TxnResponse
    • Watch
    • Watch.WatchBase
    • Watch.WatchClient
    • WatchCancelRequest
    • WatchCreateRequest
    • WatchCreateRequest.Types
    • WatchCreateRequest.Types.FilterType
    • WatchRequest
    • WatchRequest.RequestUnionOneofCase
    • WatchResponse
  • Mvccpb
    • Event
    • Event.Types
    • Event.Types.EventType
    • KeyValue
    • KvReflection

Class Client

A simple wrapper client for etcd v3 client.

Inheritance
System.Object
Client
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ETCD.V3
Assembly: cs.temp.dll.dll
Syntax
public class Client

Constructors

Client(String, ChannelCredentials)

new Client

Declaration
public Client(string target, ChannelCredentials credentials = null)
Parameters
Type Name Description
System.String target

host:port

ChannelCredentials credentials

Client-side channel credentials. Used for creation of a secure channel. Defualt is ChannelCredentials.Insecure

Properties

Auth

Origin grpc etcd v3 Client for Auth

Declaration
public AuthClient Auth { get; }
Property Value
Type Description
AuthClient

Cluster

Origin grpc etcd v3 Client for Cluster

Declaration
public ClusterClient Cluster { get; }
Property Value
Type Description
ClusterClient

KV

Origin grpc etcd v3 Client for KV

Declaration
public KVClient KV { get; }
Property Value
Type Description
KVClient

Lease

Origin grpc etcd v3 Client for Lease

Declaration
public LeaseClient Lease { get; }
Property Value
Type Description
LeaseClient

Maintenance

Origin grpc etcd v3 Client for Maintenance

Declaration
public MaintenanceClient Maintenance { get; }
Property Value
Type Description
MaintenanceClient

Watch

Origin grpc etcd v3 Client for Watch

Declaration
public WatchClient Watch { get; }
Property Value
Type Description
WatchClient

Methods

Close()

Close channel.

Declaration
public void Close()

CloseAsync()

Async close channel.

Declaration
public Task CloseAsync()
Returns
Type Description
Task

NewAuthToken(String, String, Metadata)

Generate new auth token

Declaration
public void NewAuthToken(string user, string password, Metadata headers = null)
Parameters
Type Name Description
System.String user

User which for auth

System.String password

User password

Metadata headers

Headers to be sent with the call.

Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX