IOrganization ITenantActionsSync.CreateOrganization(IOrganization organization, Action<OrganizationCreationOptionsBuilder> creationOptionsAction) { var builder = new OrganizationCreationOptionsBuilder(); creationOptionsAction(builder); var options = builder.Build(); return this.CreateOrganization(organization, options); }
Task<IOrganization> ITenantActions.CreateOrganizationAsync(IOrganization organization, Action<OrganizationCreationOptionsBuilder> creationOptionsAction, CancellationToken cancellationToken) { var builder = new OrganizationCreationOptionsBuilder(); creationOptionsAction(builder); var options = builder.Build(); return this.AsInterface.CreateOrganizationAsync(organization, options, cancellationToken); }