protected StorageAdminManagementClient GetClient(RecordedDelegatingHandler handler, TokenCloudCredentials token) { handler.IsPassThrough = false; var client = new StorageAdminManagementClient(token, new Uri(Constants.BaseUri)).WithHandler(handler); return(client); }
/// <summary> /// Dispose StorageAdminManagementClient /// </summary> /// <returns></returns> protected override void EndProcessing() { StorageAdminManagementClient client = Client; if (client != null) { client.Dispose(); } Client = null; if (SkipCertificateValidation) { if (originalValidateCallback != null) { ServicePointManager.ServerCertificateValidationCallback = originalValidateCallback; } } base.EndProcessing(); }
protected StorageAdminManagementClient GetClient(RecordedDelegatingHandler handler, TokenCloudCredentials token) { handler.IsPassThrough = false; var client = new StorageAdminManagementClient(token, new Uri(Constants.BaseUri)).WithHandler(handler); return client; }