Interface IHostedServicesCollectionConfig<T>
Defines a contract for a configuration collection for hosted services, allowing the enqueuing of configuration items and retrieval of the next configuration item.
Namespace: Coree.NETStandard.HostedServicesCollection
Assembly: Coree.NETStandard.dll
Syntax
public interface IHostedServicesCollectionConfig<T>
Type Parameters
Name | Description |
---|---|
T | The type of the configuration item. |
Methods
| Edit this page View SourceEnqueue(T)
Enqueues a new configuration item into the collection.
Declaration
void Enqueue(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The configuration item to be added to the queue. |
FetchNextConfig()
Fetches the next configuration item from the queue, removing it from the collection. If the queue is empty, returns a new instance of the configuration item type.
Declaration
T FetchNextConfig()
Returns
Type | Description |
---|---|
T | The next configuration item if available; otherwise, a new instance of the configuration item type. |