Class SubscribedMethodsLoaderService
Resolves all the subscribers and build the types cache to boost the first publish performance.
Inheritance
System.Object
Microsoft.Extensions.Hosting.BackgroundService
SubscribedMethodsLoaderService
Implements
Microsoft.Extensions.Hosting.IHostedService
System.IDisposable
Inherited Members
Microsoft.Extensions.Hosting.BackgroundService.StartAsync(System.Threading.CancellationToken)
Microsoft.Extensions.Hosting.BackgroundService.StopAsync(System.Threading.CancellationToken)
Microsoft.Extensions.Hosting.BackgroundService.Dispose()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceScopeFactory | serviceScopeFactory | The Microsoft.Extensions.DependencyInjection.IServiceScopeFactory. |
Methods
| Improve this doc View sourceExecuteAsync(CancellationToken)
Declaration
protected override Task ExecuteAsync(CancellationToken stoppingToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | stoppingToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
Microsoft.Extensions.Hosting.BackgroundService.ExecuteAsync(System.Threading.CancellationToken)
Implements
Microsoft.Extensions.Hosting.IHostedService
System.IDisposable