コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the DataLakeStoreFileSystemManagementClient class.
        /// </summary>
        /// <param name='credentials'>
        /// Required. Gets Azure subscription credentials.
        /// </param>
        /// <param name='rootHandler'>
        /// Optional. The http client handler used to handle http transport.
        /// </param>
        /// <param name='userAgentAssemblyVersion'>
        /// Optional. The version string that should be sent in the user-agent header for all requests. The default is the current version of the SDK.
        /// </param>
        /// <param name='adlsFileSystemDnsSuffix'>
        /// Optional. The dns suffix to use for all requests for this client instance. The default is 'azuredatalakestore.net'.
        /// </param>
        /// <param name='clientTimeoutInMinutes'>
        /// Optional. The maximum amount of time the client will wait for the server to respond to a request. The default is five minutes.
        /// </param>
        /// <param name='handlers'>
        /// Optional. The delegating handlers to add to the http client pipeline.
        /// </param>
        public DataLakeStoreFileSystemManagementClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, string userAgentAssemblyVersion = "", string adlsFileSystemDnsSuffix = DataLakeStoreCustomizationHelper.DefaultAdlsFileSystemDnsSuffix, int clientTimeoutInMinutes = 5, params DelegatingHandler[] handlers) : this(credentials, rootHandler, handlers)
        {
            this.AdlsFileSystemDnsSuffix = adlsFileSystemDnsSuffix;
            DataLakeStoreCustomizationHelper.UpdateUserAgentAssemblyVersion(this, userAgentAssemblyVersion);

            // for filesystem operations, it is up to the caller to utilize cancellation tokens to enforce granular
            // timeouts. Otherwise the client will overall timeout after the specified number of minutes (default is five).
            this.HttpClient.Timeout = TimeSpan.FromMinutes(clientTimeoutInMinutes);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the DataLakeStoreManagementClient class.
 /// </summary>
 /// <param name='baseUri'>
 /// Optional. The base URI of the service.
 /// </param>
 /// <param name='credentials'>
 /// Required. Gets Azure subscription credentials.
 /// </param>
 /// <param name='userAgentAssemblyVersion'>
 /// Optional. The version string that should be sent in the user-agent header for all requests. The default is the current version of the SDK.
 /// </param>
 /// <param name='handlers'>
 /// Optional. The delegating handlers to add to the http client pipeline.
 /// </param>
 public DataLakeStoreAccountManagementClient(Uri baseUri, ServiceClientCredentials credentials, string userAgentAssemblyVersion = "", params DelegatingHandler[] handlers) : this(baseUri, credentials, handlers)
 {
     DataLakeStoreCustomizationHelper.UpdateUserAgentAssemblyVersion(this, userAgentAssemblyVersion);
 }