public interface IConsumer<T> : IDisposableReference documentation and code samples for the Google.Cloud.Diagnostics.Common interface IConsumer
A consumer.
Namespace
Google.Cloud.Diagnostics.CommonAssembly
Google.Cloud.Diagnostics.Common.dll
Type Parameter |
|
|---|---|
| Name | Description |
T |
|
Methods
Receive(IEnumerable<T>)
void Receive(IEnumerable<T> items)Accepts an enumerable of items.
| Parameter | |
|---|---|
| Name | Description |
items |
IEnumerableThe 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 | |
|---|---|
| Name | Description |
items |
IEnumerableThe items to receive. Must not be null. |
cancellationToken |
CancellationTokenThe token to monitor for cancellation requests. |
| Returns | |
|---|---|
| Type | Description |
Task |
A task representing the asynchronous operation. |