Table of Contents

Interface ISingleMessageArgumentResolver

Namespace
Silverback.Messaging.Subscribers.ArgumentResolvers
Assembly
Silverback.Core.dll

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

public interface ISingleMessageArgumentResolver : IMessageArgumentResolver, IArgumentResolver
Inherited Members

Properties

SkipInvocationIfNull

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

bool SkipInvocationIfNull { get; }

Property Value

bool

Methods

GetValue(object?, Type)

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

object? GetValue(object? message, Type parameterType)

Parameters

message object

The message being published.

parameterType Type

The type of the parameter to be resolved.

Returns

object

The actual value to be forwarded to the subscribed method.