public void DeleteDomain(string name) { var authorizedInvocationContext = CreateAuthorizedInvocationContext(); try { authorizedInvocationContext. InvokeOperation(() => _ssoAdminBindingClient.DeleteAsync( new ManagedObjectReference { type = "SsoAdminIdentitySourceManagementService", Value = "identitySourceManagementService" }, name)).Wait(); } catch (AggregateException e) { throw e.InnerException; } }