Exemplo n.º 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>
 public static CreateChildTenantHeaders CreateChildTenant(this ITenancyService operations, string tenantId, string tenantName, System.Guid?wellKnownChildTenantGuid = default(System.Guid?))
 {
     return(operations.CreateChildTenantAsync(tenantId, tenantName, wellKnownChildTenantGuid).GetAwaiter().GetResult());
 }