public interface IConsumer<T> : IDisposable
Reference 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 |
IEnumerable 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 | |
---|---|
Name | Description |
items |
IEnumerable The items to receive. Must not be null. |
cancellationToken |
CancellationToken The token to monitor for cancellation requests. |
Returns | |
---|---|
Type | Description |
Task |
A task representing the asynchronous operation. |