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

    | Improve this doc View source

    GetValue(Type, IServiceProvider)

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

    Declaration
    object? GetValue(Type parameterType, IServiceProvider serviceProvider)
    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.

    Returns
    Type Description
    object

    A value to be forwarded to the subscribed method.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini