Exemple #1
0
 /// <summary>
 /// Create a child tenant
 /// </summary>
 /// <remarks>
 /// Creates a child tenant of the parent tenant
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='tenantId'>
 /// The tenant within which the request should operate
 /// </param>
 /// <param name='tenantName'>
 /// The name for the new tenant
 /// </param>
 /// <param name='wellKnownChildTenantGuid'>
 /// The well known Guid for the new tenant. If provided, this will be used to
 /// create the child tenant Id.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CreateChildTenantHeaders> CreateChildTenantAsync(this ITenancyService operations, string tenantId, string tenantName, System.Guid?wellKnownChildTenantGuid = default(System.Guid?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateChildTenantWithHttpMessagesAsync(tenantId, tenantName, wellKnownChildTenantGuid, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }