Class SubscribedMethodsLoaderService
Resolves all the subscribers and build the types cache to boost the first publish performance.
Inherited Members
Namespace: Silverback.Messaging.Subscribers
Assembly: Silverback.Core.dll
Syntax
public class SubscribedMethodsLoaderService : BackgroundService, IHostedService, IDisposable
Constructors
SubscribedMethodsLoaderService(IServiceScopeFactory)
Initializes a new instance of the SubscribedMethodsLoaderService class.
Declaration
public SubscribedMethodsLoaderService(IServiceScopeFactory serviceScopeFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceScopeFactory | serviceScopeFactory | The IServiceScopeFactory. |
Methods
ExecuteAsync(CancellationToken)
Resolves all the subscribers and build the types cache to boost the first publish performance.
Declaration
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | stoppingToken |
Returns
| Type | Description |
|---|---|
| Task |