Google.Cloud.Diagnostics.Common - Interface IConsumer<T> (5.1.0)

public interface IConsumer<T> : IDisposable

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common interface IConsumer

A consumer.

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

Assembly

Google.Cloud.Diagnostics.Common.dll

Type Parameter

NameDescription
T

Methods

Receive(IEnumerable<T>)

void Receive(IEnumerable<T> items)

Accepts an enumerable of items.

Parameter
NameDescription
itemsIEnumerable

The items to receive. Must not be null.

ReceiveAsync(IEnumerable<T>, CancellationToken)

Task ReceiveAsync(IEnumerable<T> items, CancellationToken cancellationToken = default)

Accepts an enumerable of items asynchronously.

Parameters
NameDescription
itemsIEnumerable

The items to receive. Must not be null.

cancellationTokenCancellationToken

The token to monitor for cancellation requests.

Returns
TypeDescription
Task

A task representing the asynchronous operation.