/// <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()); }
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) {}
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) {}
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>(); }
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) {}
public UpsertQueueRequest(IEtcdClient etcdClient, EndpointPool endpointPool, params string[] pathParts) : base(etcdClient, endpointPool, pathParts) {}