Show / Hide Table of Contents

    Interface IAdditionalArgumentResolver

    These resolvers are used to try to get a value for the additional parameters (other than the message itself) of the subscribed methods.

    Inherited Members
    IArgumentResolver.CanResolve(Type)
    Namespace: Silverback.Messaging.Subscribers.ArgumentResolvers
    Assembly: Silverback.Core.dll
    Syntax
    public interface IAdditionalArgumentResolver : IArgumentResolver

    Methods

    GetValue(Type, IServiceProvider, CancellationToken)

    Returns a suitable value for the parameter of the specified type.

    Declaration
    object? GetValue(Type parameterType, IServiceProvider serviceProvider, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Type parameterType

    The type of the parameter to be resolved.

    IServiceProvider serviceProvider

    The IServiceProvider to be used to resolve the necessary services.

    CancellationToken cancellationToken

    The CancellationToken that can be used to cancel the subscriber method operation.

    Returns
    Type Description
    object

    A value to be forwarded to the subscribed method.

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