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
| Improve this doc View sourceSubscribedMethodsLoaderService(IServiceScopeFactory)
Initializes a new instance of the SubscribedMethodsLoaderService class.
Declaration
public SubscribedMethodsLoaderService(IServiceScopeFactory serviceScopeFactory)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IServiceScopeFactory | serviceScopeFactory | The IServiceScopeFactory.  | 
      
Methods
| Improve this doc View sourceExecuteAsync(CancellationToken)
This method is called when the IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.
Declaration
protected override Task ExecuteAsync(CancellationToken stoppingToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| CancellationToken | stoppingToken | Triggered when StopAsync(CancellationToken) is called.  | 
      
Returns
| Type | Description | 
|---|---|
| Task | A Task that represents the long running operations.  |