Google Cloud Dialogflow v2 API - Class EncryptionSpecServiceClient (4.23.0)

public abstract class EncryptionSpecServiceClient

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class EncryptionSpecServiceClient.

EncryptionSpecService client wrapper, for convenient use.

Inheritance

object > EncryptionSpecServiceClient

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Manages encryption spec settings for Dialogflow and Agent Assist.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the EncryptionSpecService service, which is a host of "dialogflow.googleapis.com" and a port of 443.

Property Value
Type Description
string

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default EncryptionSpecService scopes.

Property Value
Type Description
IReadOnlyListstring
Remarks

GrpcClient

public virtual EncryptionSpecService.EncryptionSpecServiceClient GrpcClient { get; }

The underlying gRPC EncryptionSpecService client

Property Value
Type Description
EncryptionSpecServiceEncryptionSpecServiceClient

InitializeEncryptionSpecOperationsClient

public virtual OperationsClient InitializeEncryptionSpecOperationsClient { get; }

The long-running operations client for InitializeEncryptionSpec.

Property Value
Type Description
OperationsClient

LocationsClient

public virtual LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
Type Description
LocationsClient

ServiceMetadata

public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

Property Value
Type Description
ServiceMetadata

Methods

Create()

public static EncryptionSpecServiceClient Create()

Synchronously creates a EncryptionSpecServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EncryptionSpecServiceClientBuilder.

Returns
Type Description
EncryptionSpecServiceClient

The created EncryptionSpecServiceClient.

CreateAsync(CancellationToken)

public static Task<EncryptionSpecServiceClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a EncryptionSpecServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use EncryptionSpecServiceClientBuilder.

Parameter
Name Description
cancellationToken CancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
TaskEncryptionSpecServiceClient

The task representing the created EncryptionSpecServiceClient.

GetEncryptionSpec(EncryptionSpecName, CallSettings)

public virtual EncryptionSpec GetEncryptionSpec(EncryptionSpecName name, CallSettings callSettings = null)

Gets location-level encryption key specification.

Parameters
Name Description
name EncryptionSpecName

Required. The name of the encryption spec resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
EncryptionSpec

The RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = EncryptionSpecServiceClient.Create();
// Initialize request argument(s)
EncryptionSpecName name = EncryptionSpecName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
EncryptionSpec response = encryptionSpecServiceClient.GetEncryptionSpec(name);

GetEncryptionSpec(GetEncryptionSpecRequest, CallSettings)

public virtual EncryptionSpec GetEncryptionSpec(GetEncryptionSpecRequest request, CallSettings callSettings = null)

Gets location-level encryption key specification.

Parameters
Name Description
request GetEncryptionSpecRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
EncryptionSpec

The RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = EncryptionSpecServiceClient.Create();
// Initialize request argument(s)
GetEncryptionSpecRequest request = new GetEncryptionSpecRequest
{
    EncryptionSpecName = EncryptionSpecName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
EncryptionSpec response = encryptionSpecServiceClient.GetEncryptionSpec(request);

GetEncryptionSpec(string, CallSettings)

public virtual EncryptionSpec GetEncryptionSpec(string name, CallSettings callSettings = null)

Gets location-level encryption key specification.

Parameters
Name Description
name string

Required. The name of the encryption spec resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
EncryptionSpec

The RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = EncryptionSpecServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/encryptionSpec";
// Make the request
EncryptionSpec response = encryptionSpecServiceClient.GetEncryptionSpec(name);

GetEncryptionSpecAsync(EncryptionSpecName, CallSettings)

public virtual Task<EncryptionSpec> GetEncryptionSpecAsync(EncryptionSpecName name, CallSettings callSettings = null)

Gets location-level encryption key specification.

Parameters
Name Description
name EncryptionSpecName

Required. The name of the encryption spec resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEncryptionSpec

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
EncryptionSpecName name = EncryptionSpecName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
EncryptionSpec response = await encryptionSpecServiceClient.GetEncryptionSpecAsync(name);

GetEncryptionSpecAsync(EncryptionSpecName, CancellationToken)

public virtual Task<EncryptionSpec> GetEncryptionSpecAsync(EncryptionSpecName name, CancellationToken cancellationToken)

Gets location-level encryption key specification.

Parameters
Name Description
name EncryptionSpecName

Required. The name of the encryption spec resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEncryptionSpec

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
EncryptionSpecName name = EncryptionSpecName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
EncryptionSpec response = await encryptionSpecServiceClient.GetEncryptionSpecAsync(name);

GetEncryptionSpecAsync(GetEncryptionSpecRequest, CallSettings)

public virtual Task<EncryptionSpec> GetEncryptionSpecAsync(GetEncryptionSpecRequest request, CallSettings callSettings = null)

Gets location-level encryption key specification.

Parameters
Name Description
request GetEncryptionSpecRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEncryptionSpec

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
GetEncryptionSpecRequest request = new GetEncryptionSpecRequest
{
    EncryptionSpecName = EncryptionSpecName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
EncryptionSpec response = await encryptionSpecServiceClient.GetEncryptionSpecAsync(request);

GetEncryptionSpecAsync(GetEncryptionSpecRequest, CancellationToken)

public virtual Task<EncryptionSpec> GetEncryptionSpecAsync(GetEncryptionSpecRequest request, CancellationToken cancellationToken)

Gets location-level encryption key specification.

Parameters
Name Description
request GetEncryptionSpecRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEncryptionSpec

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
GetEncryptionSpecRequest request = new GetEncryptionSpecRequest
{
    EncryptionSpecName = EncryptionSpecName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
EncryptionSpec response = await encryptionSpecServiceClient.GetEncryptionSpecAsync(request);

GetEncryptionSpecAsync(string, CallSettings)

public virtual Task<EncryptionSpec> GetEncryptionSpecAsync(string name, CallSettings callSettings = null)

Gets location-level encryption key specification.

Parameters
Name Description
name string

Required. The name of the encryption spec resource to get.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskEncryptionSpec

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/encryptionSpec";
// Make the request
EncryptionSpec response = await encryptionSpecServiceClient.GetEncryptionSpecAsync(name);

GetEncryptionSpecAsync(string, CancellationToken)

public virtual Task<EncryptionSpec> GetEncryptionSpecAsync(string name, CancellationToken cancellationToken)

Gets location-level encryption key specification.

Parameters
Name Description
name string

Required. The name of the encryption spec resource to get.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskEncryptionSpec

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/encryptionSpec";
// Make the request
EncryptionSpec response = await encryptionSpecServiceClient.GetEncryptionSpecAsync(name);

InitializeEncryptionSpec(EncryptionSpec, CallSettings)

public virtual Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> InitializeEncryptionSpec(EncryptionSpec encryptionSpec, CallSettings callSettings = null)

Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

Parameters
Name Description
encryptionSpec EncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

The RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = EncryptionSpecServiceClient.Create();
// Initialize request argument(s)
EncryptionSpec encryptionSpec = new EncryptionSpec();
// Make the request
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> response = encryptionSpecServiceClient.InitializeEncryptionSpec(encryptionSpec);

// Poll until the returned long-running operation is complete
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
InitializeEncryptionSpecResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> retrievedResponse = encryptionSpecServiceClient.PollOnceInitializeEncryptionSpec(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    InitializeEncryptionSpecResponse retrievedResult = retrievedResponse.Result;
}

InitializeEncryptionSpec(InitializeEncryptionSpecRequest, CallSettings)

public virtual Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> InitializeEncryptionSpec(InitializeEncryptionSpecRequest request, CallSettings callSettings = null)

Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

Parameters
Name Description
request InitializeEncryptionSpecRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

The RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = EncryptionSpecServiceClient.Create();
// Initialize request argument(s)
InitializeEncryptionSpecRequest request = new InitializeEncryptionSpecRequest
{
    EncryptionSpec = new EncryptionSpec(),
};
// Make the request
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> response = encryptionSpecServiceClient.InitializeEncryptionSpec(request);

// Poll until the returned long-running operation is complete
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
InitializeEncryptionSpecResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> retrievedResponse = encryptionSpecServiceClient.PollOnceInitializeEncryptionSpec(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    InitializeEncryptionSpecResponse retrievedResult = retrievedResponse.Result;
}

InitializeEncryptionSpecAsync(EncryptionSpec, CallSettings)

public virtual Task<Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata>> InitializeEncryptionSpecAsync(EncryptionSpec encryptionSpec, CallSettings callSettings = null)

Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

Parameters
Name Description
encryptionSpec EncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
EncryptionSpec encryptionSpec = new EncryptionSpec();
// Make the request
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> response = await encryptionSpecServiceClient.InitializeEncryptionSpecAsync(encryptionSpec);

// Poll until the returned long-running operation is complete
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
InitializeEncryptionSpecResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> retrievedResponse = await encryptionSpecServiceClient.PollOnceInitializeEncryptionSpecAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    InitializeEncryptionSpecResponse retrievedResult = retrievedResponse.Result;
}

InitializeEncryptionSpecAsync(EncryptionSpec, CancellationToken)

public virtual Task<Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata>> InitializeEncryptionSpecAsync(EncryptionSpec encryptionSpec, CancellationToken cancellationToken)

Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

Parameters
Name Description
encryptionSpec EncryptionSpec

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name is left empty, no encryption will be enforced.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
EncryptionSpec encryptionSpec = new EncryptionSpec();
// Make the request
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> response = await encryptionSpecServiceClient.InitializeEncryptionSpecAsync(encryptionSpec);

// Poll until the returned long-running operation is complete
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
InitializeEncryptionSpecResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> retrievedResponse = await encryptionSpecServiceClient.PollOnceInitializeEncryptionSpecAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    InitializeEncryptionSpecResponse retrievedResult = retrievedResponse.Result;
}

InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, CallSettings)

public virtual Task<Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata>> InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request, CallSettings callSettings = null)

Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

Parameters
Name Description
request InitializeEncryptionSpecRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
InitializeEncryptionSpecRequest request = new InitializeEncryptionSpecRequest
{
    EncryptionSpec = new EncryptionSpec(),
};
// Make the request
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> response = await encryptionSpecServiceClient.InitializeEncryptionSpecAsync(request);

// Poll until the returned long-running operation is complete
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
InitializeEncryptionSpecResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> retrievedResponse = await encryptionSpecServiceClient.PollOnceInitializeEncryptionSpecAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    InitializeEncryptionSpecResponse retrievedResult = retrievedResponse.Result;
}

InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest, CancellationToken)

public virtual Task<Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata>> InitializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request, CancellationToken cancellationToken)

Initializes a location-level encryption key specification. An error will be thrown if the location has resources already created before the initialization. Once the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.

Parameters
Name Description
request InitializeEncryptionSpecRequest

The request object containing all of the parameters for the API call.

cancellationToken CancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
TaskOperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

A Task containing the RPC response.

Example
// Create client
EncryptionSpecServiceClient encryptionSpecServiceClient = await EncryptionSpecServiceClient.CreateAsync();
// Initialize request argument(s)
InitializeEncryptionSpecRequest request = new InitializeEncryptionSpecRequest
{
    EncryptionSpec = new EncryptionSpec(),
};
// Make the request
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> response = await encryptionSpecServiceClient.InitializeEncryptionSpecAsync(request);

// Poll until the returned long-running operation is complete
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
InitializeEncryptionSpecResponse result = completedResponse.Result;

// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> retrievedResponse = await encryptionSpecServiceClient.PollOnceInitializeEncryptionSpecAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
    // If it has completed, then access the result
    InitializeEncryptionSpecResponse retrievedResult = retrievedResponse.Result;
}

PollOnceInitializeEncryptionSpec(string, CallSettings)

public virtual Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> PollOnceInitializeEncryptionSpec(string operationName, CallSettings callSettings = null)

Poll an operation once, using an operationName from a previous invocation of InitializeEncryptionSpec.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
OperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

The result of polling the operation.

PollOnceInitializeEncryptionSpecAsync(string, CallSettings)

public virtual Task<Operation<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata>> PollOnceInitializeEncryptionSpecAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an operationName from a previous invocation of InitializeEncryptionSpec.

Parameters
Name Description
operationName string

The name of a previously invoked operation. Must not be null or empty.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskOperationInitializeEncryptionSpecResponseInitializeEncryptionSpecMetadata

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
Type Description
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.