Table of Contents

Class SubscribedMethodsLoaderService

Namespace
Silverback.Messaging.Subscribers
Assembly
Silverback.Core.dll

Resolves all the subscribers and build the types cache to boost the first publish performance.

public class SubscribedMethodsLoaderService : BackgroundService, IHostedService, IDisposable
Inheritance
SubscribedMethodsLoaderService
Implements
Inherited Members

Constructors

SubscribedMethodsLoaderService(IServiceScopeFactory)

Initializes a new instance of the SubscribedMethodsLoaderService class.

public SubscribedMethodsLoaderService(IServiceScopeFactory serviceScopeFactory)

Parameters

serviceScopeFactory IServiceScopeFactory

The IServiceScopeFactory.

Methods

ExecuteAsync(CancellationToken)

protected override Task ExecuteAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

Returns

Task