Interface IAsyncJobQueueFactory
Creates and manages IAsyncJobQueue<T> and IAsyncJobQueue<TAsyncEnumerable, T> instances.
Namespace: Snowflake.Extensibility.Queueing
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IAsyncJobQueueFactory
Methods
GetJobQueue<T>(Boolean)
Gets or creates a job queue with the given type parameters
Declaration
IAsyncJobQueue<T> GetJobQueue<T>(bool disposeEnumerable = true)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposeEnumerable | Whether to get a job queue that disposes enumerables. |
Returns
Type | Description |
---|---|
IAsync |
An async job queue that works with System.Collections.Generic.IAsyncEnumerable<T> |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the enumerable. |
GetJobQueue<TAsyncEnumerable, T>(Boolean)
Gets or creates a job queue with the given type parameters
Declaration
IAsyncJobQueue<TAsyncEnumerable, T> GetJobQueue<TAsyncEnumerable, T>(bool disposeEnumerable = true)
where TAsyncEnumerable : class, IAsyncEnumerable<T>
Parameters
Type | Name | Description |
---|---|---|
System. |
disposeEnumerable | Whether to get a job queue that disposes enumerables. |
Returns
Type | Description |
---|---|
IAsync |
An async job queue that works with the given TAsyncEnumerable type. |
Type Parameters
Name | Description |
---|---|
TAsyncEnumerable | The type of the enumerable that must implement System.Collections.Generic.IAsyncEnumerable<T> |
T | The type of elements in the enumerable. |