Example #1
0
 /// <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());
 }
Example #2
0
 public DeleteRequest(IEtcdClient etcdClient, EndpointPool endpointPool, bool isDirectory, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts)
 {
     IsDirectory = isDirectory;
 }
 public DeleteMemberRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) 
     : base(etcdClient, endpointPool, pathParts) {}
Example #4
0
 public GetVersionRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}
 public CompareAndSwapRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}
Example #6
0
 public EtcdClient(EndpointPool endpointPool, ClientConfig clientConfig)
 {
     EndpointPool = endpointPool;
     _clientConfig = clientConfig ?? new ClientConfig();
 }
 public UpdateMemberPeerUrlsRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) 
     : base(etcdClient, endpointPool, pathParts)
 {
     Uris = new List<Uri>();
 }
Example #8
0
 protected BaseRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
 {
     EtcdClient = etcdClient;
     _endpointPool = endpointPool;
     _pathParts = pathParts;
 }
 public GetLeaderStatisticsRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) : base(etcdClient, endpointPool, pathParts) {}
Example #10
0
 public UpsertQueueRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}