Show / Hide Table of Contents

    Interface ISingleMessageArgumentResolver

    These resolvers are used to handle the single message parameter (the pure message, not wrapped in any enumerable or collection).

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

    Properties

    SkipInvocationIfNull

    Gets a value indicating whether the subscriber invocation should be skipped if the resolved value is null.

    Declaration
    bool SkipInvocationIfNull { get; }
    Property Value
    Type Description
    bool

    Methods

    GetValue(object?, Type)

    Returns the message value in a shape that is compatible with the subscribed method.

    Declaration
    object? GetValue(object? message, Type parameterType)
    Parameters
    Type Name Description
    object message

    The message being published.

    Type parameterType

    The type of the parameter to be resolved.

    Returns
    Type Description
    object

    The actual value to be forwarded to the subscribed method.

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