コード例 #1
0
ファイル: Etcd.cs プロジェクト: huoxudong125/Draft
 /// <summary>
 ///     Creates an <see cref="IEtcdClient" /> for the specified <see cref="EndpointPool" />.
 /// </summary>
 /// <exception cref="ArgumentNullException">Passed <paramref name="endpointPool" /> is null.</exception>
 public static IEtcdClient ClientFor(EndpointPool endpointPool)
 {
     if (endpointPool == null)
     {
         throw new ArgumentNullException("endpointPool");
     }
     return new EtcdClient(endpointPool, ClientConfig.Value.DeepCopy());
 }
コード例 #2
0
ファイル: DeleteRequest.cs プロジェクト: huoxudong125/Draft
 public DeleteRequest(IEtcdClient etcdClient, EndpointPool endpointPool, bool isDirectory, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts)
 {
     IsDirectory = isDirectory;
 }
コード例 #3
0
 public DeleteMemberRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) 
     : base(etcdClient, endpointPool, pathParts) {}
コード例 #4
0
 public GetVersionRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}
コード例 #5
0
 public CompareAndSwapRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}
コード例 #6
0
ファイル: EtcdClient.cs プロジェクト: geffzhang/Draft
 public EtcdClient(EndpointPool endpointPool, ClientConfig clientConfig)
 {
     EndpointPool = endpointPool;
     _clientConfig = clientConfig ?? new ClientConfig();
 }
コード例 #7
0
 public UpdateMemberPeerUrlsRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) 
     : base(etcdClient, endpointPool, pathParts)
 {
     Uris = new List<Uri>();
 }
コード例 #8
0
ファイル: BaseRequest.cs プロジェクト: huoxudong125/Draft
 protected BaseRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
 {
     EtcdClient = etcdClient;
     _endpointPool = endpointPool;
     _pathParts = pathParts;
 }
コード例 #9
0
 public GetLeaderStatisticsRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) : base(etcdClient, endpointPool, pathParts) {}
コード例 #10
0
 public UpsertQueueRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}