Class AudienceSegmentServiceClient
AudienceSegmentService client wrapper, for convenient use.
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class AudienceSegmentServiceClient
Remarks
Provides methods for handling AudienceSegment objects.
Properties
DefaultEndpoint
The default endpoint for the AudienceSegmentService service, which is a host of "admanager.googleapis.com" and a port of 443.
Declaration
public static string DefaultEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| string |
DefaultScopes
The default AudienceSegmentService scopes.
Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<string> |
Remarks
The default AudienceSegmentService scopes are:
- https://www.googleapis.com/auth/admanager
GrpcClient
The underlying gRPC AudienceSegmentService client
Declaration
public virtual AudienceSegmentService.AudienceSegmentServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| AudienceSegmentService.AudienceSegmentServiceClient |
ServiceMetadata
The service metadata associated with this client type.
Declaration
public static ServiceMetadata ServiceMetadata { get; }
Property Value
| Type | Description |
|---|---|
| ServiceMetadata |
Methods
Create()
Synchronously creates a AudienceSegmentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AudienceSegmentServiceClientBuilder.
Declaration
public static AudienceSegmentServiceClient Create()
Returns
| Type | Description |
|---|---|
| AudienceSegmentServiceClient | The created AudienceSegmentServiceClient. |
CreateAsync(CancellationToken)
Asynchronously creates a AudienceSegmentServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use AudienceSegmentServiceClientBuilder.
Declaration
public static Task<AudienceSegmentServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The CancellationToken to use while creating the client. |
Returns
| Type | Description |
|---|---|
| Task<AudienceSegmentServiceClient> | The task representing the created AudienceSegmentServiceClient. |
GetAudienceSegment(AudienceSegmentName, CallSettings)
API to retrieve an AudienceSegment object.
Declaration
public virtual AudienceSegment GetAudienceSegment(AudienceSegmentName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AudienceSegmentName | name | Required. The resource name of the AudienceSegment.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AudienceSegment | The RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = AudienceSegmentServiceClient.Create();
// Initialize request argument(s)
AudienceSegmentName name = AudienceSegmentName.FromNetworkCodeAudienceSegment("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
// Make the request
AudienceSegment response = audienceSegmentServiceClient.GetAudienceSegment(name);
GetAudienceSegment(GetAudienceSegmentRequest, CallSettings)
API to retrieve an AudienceSegment object.
Declaration
public virtual AudienceSegment GetAudienceSegment(GetAudienceSegmentRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentRequest | request | 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 |
|---|---|
| AudienceSegment | The RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = AudienceSegmentServiceClient.Create();
// Initialize request argument(s)
GetAudienceSegmentRequest request = new GetAudienceSegmentRequest
{
AudienceSegmentName = AudienceSegmentName.FromNetworkCodeAudienceSegment("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]"),
};
// Make the request
AudienceSegment response = audienceSegmentServiceClient.GetAudienceSegment(request);
GetAudienceSegment(string, CallSettings)
API to retrieve an AudienceSegment object.
Declaration
public virtual AudienceSegment GetAudienceSegment(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the AudienceSegment.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| AudienceSegment | The RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = AudienceSegmentServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/audienceSegments/[AUDIENCE_SEGMENT]";
// Make the request
AudienceSegment response = audienceSegmentServiceClient.GetAudienceSegment(name);
GetAudienceSegmentAsync(AudienceSegmentName, CallSettings)
API to retrieve an AudienceSegment object.
Declaration
public virtual Task<AudienceSegment> GetAudienceSegmentAsync(AudienceSegmentName name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AudienceSegmentName | name | Required. The resource name of the AudienceSegment.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<AudienceSegment> | A Task containing the RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
AudienceSegmentName name = AudienceSegmentName.FromNetworkCodeAudienceSegment("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
// Make the request
AudienceSegment response = await audienceSegmentServiceClient.GetAudienceSegmentAsync(name);
GetAudienceSegmentAsync(AudienceSegmentName, CancellationToken)
API to retrieve an AudienceSegment object.
Declaration
public virtual Task<AudienceSegment> GetAudienceSegmentAsync(AudienceSegmentName name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| AudienceSegmentName | name | Required. The resource name of the AudienceSegment.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<AudienceSegment> | A Task containing the RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
AudienceSegmentName name = AudienceSegmentName.FromNetworkCodeAudienceSegment("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]");
// Make the request
AudienceSegment response = await audienceSegmentServiceClient.GetAudienceSegmentAsync(name);
GetAudienceSegmentAsync(GetAudienceSegmentRequest, CallSettings)
API to retrieve an AudienceSegment object.
Declaration
public virtual Task<AudienceSegment> GetAudienceSegmentAsync(GetAudienceSegmentRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentRequest | request | 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 |
|---|---|
| Task<AudienceSegment> | A Task containing the RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
GetAudienceSegmentRequest request = new GetAudienceSegmentRequest
{
AudienceSegmentName = AudienceSegmentName.FromNetworkCodeAudienceSegment("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]"),
};
// Make the request
AudienceSegment response = await audienceSegmentServiceClient.GetAudienceSegmentAsync(request);
GetAudienceSegmentAsync(GetAudienceSegmentRequest, CancellationToken)
API to retrieve an AudienceSegment object.
Declaration
public virtual Task<AudienceSegment> GetAudienceSegmentAsync(GetAudienceSegmentRequest request, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| GetAudienceSegmentRequest | request | The request object containing all of the parameters for the API call. |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<AudienceSegment> | A Task containing the RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
GetAudienceSegmentRequest request = new GetAudienceSegmentRequest
{
AudienceSegmentName = AudienceSegmentName.FromNetworkCodeAudienceSegment("[NETWORK_CODE]", "[AUDIENCE_SEGMENT]"),
};
// Make the request
AudienceSegment response = await audienceSegmentServiceClient.GetAudienceSegmentAsync(request);
GetAudienceSegmentAsync(string, CallSettings)
API to retrieve an AudienceSegment object.
Declaration
public virtual Task<AudienceSegment> GetAudienceSegmentAsync(string name, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the AudienceSegment.
Format: |
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| Task<AudienceSegment> | A Task containing the RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/audienceSegments/[AUDIENCE_SEGMENT]";
// Make the request
AudienceSegment response = await audienceSegmentServiceClient.GetAudienceSegmentAsync(name);
GetAudienceSegmentAsync(string, CancellationToken)
API to retrieve an AudienceSegment object.
Declaration
public virtual Task<AudienceSegment> GetAudienceSegmentAsync(string name, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The resource name of the AudienceSegment.
Format: |
| CancellationToken | cancellationToken | A CancellationToken to use for this RPC. |
Returns
| Type | Description |
|---|---|
| Task<AudienceSegment> | A Task containing the RPC response. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/audienceSegments/[AUDIENCE_SEGMENT]";
// Make the request
AudienceSegment response = await audienceSegmentServiceClient.GetAudienceSegmentAsync(name);
ListAudienceSegments(ListAudienceSegmentsRequest, CallSettings)
API to retrieve a list of AudienceSegment objects.
Declaration
public virtual PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> ListAudienceSegments(ListAudienceSegmentsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAudienceSegmentsRequest | request | 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 |
|---|---|
| PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> | A pageable sequence of AudienceSegment resources. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = AudienceSegmentServiceClient.Create();
// Initialize request argument(s)
ListAudienceSegmentsRequest request = new ListAudienceSegmentsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Filter = "",
OrderBy = "",
Skip = 0,
};
// Make the request
PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> response = audienceSegmentServiceClient.ListAudienceSegments(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (AudienceSegment item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAudienceSegmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AudienceSegment item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AudienceSegment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AudienceSegment item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAudienceSegments(NetworkName, string, int?, CallSettings)
API to retrieve a list of AudienceSegment objects.
Declaration
public virtual PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> ListAudienceSegments(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent publisher network associated with these audience
segments. Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> | A pageable sequence of AudienceSegment resources. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = AudienceSegmentServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> response = audienceSegmentServiceClient.ListAudienceSegments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AudienceSegment item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAudienceSegmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AudienceSegment item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AudienceSegment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AudienceSegment item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAudienceSegments(string, string, int?, CallSettings)
API to retrieve a list of AudienceSegment objects.
Declaration
public virtual PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> ListAudienceSegments(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent publisher network associated with these audience
segments. Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> | A pageable sequence of AudienceSegment resources. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = AudienceSegmentServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListAudienceSegmentsResponse, AudienceSegment> response = audienceSegmentServiceClient.ListAudienceSegments(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (AudienceSegment item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListAudienceSegmentsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AudienceSegment item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AudienceSegment> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AudienceSegment item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAudienceSegmentsAsync(ListAudienceSegmentsRequest, CallSettings)
API to retrieve a list of AudienceSegment objects.
Declaration
public virtual PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> ListAudienceSegmentsAsync(ListAudienceSegmentsRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAudienceSegmentsRequest | request | 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 |
|---|---|
| PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> | A pageable asynchronous sequence of AudienceSegment resources. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
ListAudienceSegmentsRequest request = new ListAudienceSegmentsRequest
{
ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
Filter = "",
OrderBy = "",
Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> response = audienceSegmentServiceClient.ListAudienceSegmentsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AudienceSegment item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAudienceSegmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AudienceSegment item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AudienceSegment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AudienceSegment item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAudienceSegmentsAsync(NetworkName, string, int?, CallSettings)
API to retrieve a list of AudienceSegment objects.
Declaration
public virtual PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> ListAudienceSegmentsAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkName | parent | Required. The parent publisher network associated with these audience
segments. Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> | A pageable asynchronous sequence of AudienceSegment resources. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> response = audienceSegmentServiceClient.ListAudienceSegmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AudienceSegment item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAudienceSegmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AudienceSegment item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AudienceSegment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AudienceSegment item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListAudienceSegmentsAsync(string, string, int?, CallSettings)
API to retrieve a list of AudienceSegment objects.
Declaration
public virtual PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> ListAudienceSegmentsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent publisher network associated with these audience
segments. Format: |
| string | pageToken | The token returned from the previous request. A value of |
| int? | pageSize | The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
| CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
| Type | Description |
|---|---|
| PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> | A pageable asynchronous sequence of AudienceSegment resources. |
Sample code
// Create client
AudienceSegmentServiceClient audienceSegmentServiceClient = await AudienceSegmentServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListAudienceSegmentsResponse, AudienceSegment> response = audienceSegmentServiceClient.ListAudienceSegmentsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((AudienceSegment item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListAudienceSegmentsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (AudienceSegment item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<AudienceSegment> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (AudienceSegment item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Declaration
public static Task ShutdownDefaultChannelsAsync()
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.