Esempio n. 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());
 }
Esempio n. 2
0
 public DeleteRequest(IEtcdClient etcdClient, EndpointPool endpointPool, bool isDirectory, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts)
 {
     IsDirectory = isDirectory;
 }
Esempio n. 3
0
 public DeleteMemberRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) 
     : base(etcdClient, endpointPool, pathParts) {}
Esempio n. 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) {}
Esempio n. 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>();
 }
Esempio n. 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) {}
Esempio n. 10
0
 public UpsertQueueRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts)
     : base(etcdClient, endpointPool, pathParts) {}