コード例 #1
0
        public DockerClientConfiguration(Uri endpoint, Credentials credentials)
        {
            if (endpoint == null)
            {
                throw new ArgumentNullException("endpoint");
            }

            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            EndpointBaseUri = SanitizeEndpoint(endpoint, credentials.IsTlsCredentials());
            Credentials = credentials;
        }
コード例 #2
0
 public void Dispose()
 {
     Credentials.Dispose();
 }
コード例 #3
0
 public DockerClientConfiguration(Credentials credentials = null, TimeSpan defaultTimeout = default(TimeSpan))
     : this(LocalDockerUri(), credentials, defaultTimeout)
 {
 }