Show / Hide Table of Contents

    Class SubscribedMethodsLoaderService

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

    Inheritance
    object
    BackgroundService
    SubscribedMethodsLoaderService
    Implements
    IHostedService
    IDisposable
    Inherited Members
    BackgroundService.StartAsync(CancellationToken)
    BackgroundService.StopAsync(CancellationToken)
    BackgroundService.Dispose()
    BackgroundService.ExecuteTask
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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
    Overrides
    BackgroundService.ExecuteAsync(CancellationToken)

    Implements

    IHostedService
    IDisposable
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini