Show / Hide Table of Contents

Class BandwidthGroupServiceClient

BandwidthGroupService client wrapper, for convenient use.

Inheritance
object
BandwidthGroupServiceClient
BandwidthGroupServiceClientImpl
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public abstract class BandwidthGroupServiceClient
Remarks

Provides methods for handling BandwidthGroup objects.

Properties

DefaultEndpoint

The default endpoint for the BandwidthGroupService 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 BandwidthGroupService scopes.

Declaration
public static IReadOnlyList<string> DefaultScopes { get; }
Property Value
Type Description
IReadOnlyList<string>
Remarks

The default BandwidthGroupService scopes are:

  • https://www.googleapis.com/auth/admanager

GrpcClient

The underlying gRPC BandwidthGroupService client

Declaration
public virtual BandwidthGroupService.BandwidthGroupServiceClient GrpcClient { get; }
Property Value
Type Description
BandwidthGroupService.BandwidthGroupServiceClient

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 BandwidthGroupServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use BandwidthGroupServiceClientBuilder.

Declaration
public static BandwidthGroupServiceClient Create()
Returns
Type Description
BandwidthGroupServiceClient

The created BandwidthGroupServiceClient.

CreateAsync(CancellationToken)

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

Declaration
public static Task<BandwidthGroupServiceClient> CreateAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

The CancellationToken to use while creating the client.

Returns
Type Description
Task<BandwidthGroupServiceClient>

The task representing the created BandwidthGroupServiceClient.

GetBandwidthGroup(BandwidthGroupName, CallSettings)

API to retrieve a BandwidthGroup object.

Declaration
public virtual BandwidthGroup GetBandwidthGroup(BandwidthGroupName name, CallSettings callSettings = null)
Parameters
Type Name Description
BandwidthGroupName name

Required. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BandwidthGroup

The RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = BandwidthGroupServiceClient.Create();
// Initialize request argument(s)
BandwidthGroupName name = BandwidthGroupName.FromNetworkCodeBandwidthGroup("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
// Make the request
BandwidthGroup response = bandwidthGroupServiceClient.GetBandwidthGroup(name);

GetBandwidthGroup(GetBandwidthGroupRequest, CallSettings)

API to retrieve a BandwidthGroup object.

Declaration
public virtual BandwidthGroup GetBandwidthGroup(GetBandwidthGroupRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetBandwidthGroupRequest 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
BandwidthGroup

The RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = BandwidthGroupServiceClient.Create();
// Initialize request argument(s)
GetBandwidthGroupRequest request = new GetBandwidthGroupRequest
{
    BandwidthGroupName = BandwidthGroupName.FromNetworkCodeBandwidthGroup("[NETWORK_CODE]", "[BANDWIDTH_GROUP]"),
};
// Make the request
BandwidthGroup response = bandwidthGroupServiceClient.GetBandwidthGroup(request);

GetBandwidthGroup(string, CallSettings)

API to retrieve a BandwidthGroup object.

Declaration
public virtual BandwidthGroup GetBandwidthGroup(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
BandwidthGroup

The RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = BandwidthGroupServiceClient.Create();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/bandwidthGroups/[BANDWIDTH_GROUP]";
// Make the request
BandwidthGroup response = bandwidthGroupServiceClient.GetBandwidthGroup(name);

GetBandwidthGroupAsync(BandwidthGroupName, CallSettings)

API to retrieve a BandwidthGroup object.

Declaration
public virtual Task<BandwidthGroup> GetBandwidthGroupAsync(BandwidthGroupName name, CallSettings callSettings = null)
Parameters
Type Name Description
BandwidthGroupName name

Required. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BandwidthGroup>

A Task containing the RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
BandwidthGroupName name = BandwidthGroupName.FromNetworkCodeBandwidthGroup("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
// Make the request
BandwidthGroup response = await bandwidthGroupServiceClient.GetBandwidthGroupAsync(name);

GetBandwidthGroupAsync(BandwidthGroupName, CancellationToken)

API to retrieve a BandwidthGroup object.

Declaration
public virtual Task<BandwidthGroup> GetBandwidthGroupAsync(BandwidthGroupName name, CancellationToken cancellationToken)
Parameters
Type Name Description
BandwidthGroupName name

Required. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BandwidthGroup>

A Task containing the RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
BandwidthGroupName name = BandwidthGroupName.FromNetworkCodeBandwidthGroup("[NETWORK_CODE]", "[BANDWIDTH_GROUP]");
// Make the request
BandwidthGroup response = await bandwidthGroupServiceClient.GetBandwidthGroupAsync(name);

GetBandwidthGroupAsync(GetBandwidthGroupRequest, CallSettings)

API to retrieve a BandwidthGroup object.

Declaration
public virtual Task<BandwidthGroup> GetBandwidthGroupAsync(GetBandwidthGroupRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
GetBandwidthGroupRequest 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<BandwidthGroup>

A Task containing the RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetBandwidthGroupRequest request = new GetBandwidthGroupRequest
{
    BandwidthGroupName = BandwidthGroupName.FromNetworkCodeBandwidthGroup("[NETWORK_CODE]", "[BANDWIDTH_GROUP]"),
};
// Make the request
BandwidthGroup response = await bandwidthGroupServiceClient.GetBandwidthGroupAsync(request);

GetBandwidthGroupAsync(GetBandwidthGroupRequest, CancellationToken)

API to retrieve a BandwidthGroup object.

Declaration
public virtual Task<BandwidthGroup> GetBandwidthGroupAsync(GetBandwidthGroupRequest request, CancellationToken cancellationToken)
Parameters
Type Name Description
GetBandwidthGroupRequest 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<BandwidthGroup>

A Task containing the RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
GetBandwidthGroupRequest request = new GetBandwidthGroupRequest
{
    BandwidthGroupName = BandwidthGroupName.FromNetworkCodeBandwidthGroup("[NETWORK_CODE]", "[BANDWIDTH_GROUP]"),
};
// Make the request
BandwidthGroup response = await bandwidthGroupServiceClient.GetBandwidthGroupAsync(request);

GetBandwidthGroupAsync(string, CallSettings)

API to retrieve a BandwidthGroup object.

Declaration
public virtual Task<BandwidthGroup> GetBandwidthGroupAsync(string name, CallSettings callSettings = null)
Parameters
Type Name Description
string name

Required. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task<BandwidthGroup>

A Task containing the RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/bandwidthGroups/[BANDWIDTH_GROUP]";
// Make the request
BandwidthGroup response = await bandwidthGroupServiceClient.GetBandwidthGroupAsync(name);

GetBandwidthGroupAsync(string, CancellationToken)

API to retrieve a BandwidthGroup object.

Declaration
public virtual Task<BandwidthGroup> GetBandwidthGroupAsync(string name, CancellationToken cancellationToken)
Parameters
Type Name Description
string name

Required. The resource name of the BandwidthGroup. Format: networks/{network_code}/bandwidthGroups/{bandwidth_group_id}

CancellationToken cancellationToken

A CancellationToken to use for this RPC.

Returns
Type Description
Task<BandwidthGroup>

A Task containing the RPC response.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "networks/[NETWORK_CODE]/bandwidthGroups/[BANDWIDTH_GROUP]";
// Make the request
BandwidthGroup response = await bandwidthGroupServiceClient.GetBandwidthGroupAsync(name);

ListBandwidthGroups(ListBandwidthGroupsRequest, CallSettings)

API to retrieve a list of BandwidthGroup objects.

Declaration
public virtual PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> ListBandwidthGroups(ListBandwidthGroupsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListBandwidthGroupsRequest 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<ListBandwidthGroupsResponse, BandwidthGroup>

A pageable sequence of BandwidthGroup resources.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = BandwidthGroupServiceClient.Create();
// Initialize request argument(s)
ListBandwidthGroupsRequest request = new ListBandwidthGroupsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> response = bandwidthGroupServiceClient.ListBandwidthGroups(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (BandwidthGroup 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 (ListBandwidthGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BandwidthGroup 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<BandwidthGroup> 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 (BandwidthGroup 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;

ListBandwidthGroups(NetworkName, string, int?, CallSettings)

API to retrieve a list of BandwidthGroup objects.

Declaration
public virtual PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> ListBandwidthGroups(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of BandwidthGroups. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup>

A pageable sequence of BandwidthGroup resources.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = BandwidthGroupServiceClient.Create();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> response = bandwidthGroupServiceClient.ListBandwidthGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BandwidthGroup 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 (ListBandwidthGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BandwidthGroup 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<BandwidthGroup> 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 (BandwidthGroup 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;

ListBandwidthGroups(string, string, int?, CallSettings)

API to retrieve a list of BandwidthGroup objects.

Declaration
public virtual PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> ListBandwidthGroups(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of BandwidthGroups. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup>

A pageable sequence of BandwidthGroup resources.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = BandwidthGroupServiceClient.Create();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> response = bandwidthGroupServiceClient.ListBandwidthGroups(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (BandwidthGroup 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 (ListBandwidthGroupsResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BandwidthGroup 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<BandwidthGroup> 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 (BandwidthGroup 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;

ListBandwidthGroupsAsync(ListBandwidthGroupsRequest, CallSettings)

API to retrieve a list of BandwidthGroup objects.

Declaration
public virtual PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> ListBandwidthGroupsAsync(ListBandwidthGroupsRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
ListBandwidthGroupsRequest 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<ListBandwidthGroupsResponse, BandwidthGroup>

A pageable asynchronous sequence of BandwidthGroup resources.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
ListBandwidthGroupsRequest request = new ListBandwidthGroupsRequest
{
    ParentAsNetworkName = NetworkName.FromNetworkCode("[NETWORK_CODE]"),
    Filter = "",
    OrderBy = "",
    Skip = 0,
};
// Make the request
PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> response = bandwidthGroupServiceClient.ListBandwidthGroupsAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BandwidthGroup 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((ListBandwidthGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BandwidthGroup 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<BandwidthGroup> 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 (BandwidthGroup 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;

ListBandwidthGroupsAsync(NetworkName, string, int?, CallSettings)

API to retrieve a list of BandwidthGroup objects.

Declaration
public virtual PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> ListBandwidthGroupsAsync(NetworkName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
NetworkName parent

Required. The parent, which owns this collection of BandwidthGroups. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup>

A pageable asynchronous sequence of BandwidthGroup resources.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
NetworkName parent = NetworkName.FromNetworkCode("[NETWORK_CODE]");
// Make the request
PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> response = bandwidthGroupServiceClient.ListBandwidthGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BandwidthGroup 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((ListBandwidthGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BandwidthGroup 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<BandwidthGroup> 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 (BandwidthGroup 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;

ListBandwidthGroupsAsync(string, string, int?, CallSettings)

API to retrieve a list of BandwidthGroup objects.

Declaration
public virtual PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> ListBandwidthGroupsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Parameters
Type Name Description
string parent

Required. The parent, which owns this collection of BandwidthGroups. Format: networks/{network_code}

string pageToken

The token returned from the previous request. A value of null or an empty string retrieves the first page.

int? pageSize

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

CallSettings callSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup>

A pageable asynchronous sequence of BandwidthGroup resources.

Sample code
// Create client
BandwidthGroupServiceClient bandwidthGroupServiceClient = await BandwidthGroupServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "networks/[NETWORK_CODE]";
// Make the request
PagedAsyncEnumerable<ListBandwidthGroupsResponse, BandwidthGroup> response = bandwidthGroupServiceClient.ListBandwidthGroupsAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((BandwidthGroup 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((ListBandwidthGroupsResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (BandwidthGroup 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<BandwidthGroup> 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 (BandwidthGroup 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.

In this article
Back to top Generated by DocFX