Class TombstoneMessageArgumentResolver
- Namespace
- Silverback.Messaging.Subscribers.ArgumentResolvers
- Assembly
- Silverback.Integration.dll
Resolves the parameters declared as ITombstone or ITombstone<TMessage>.
public class TombstoneMessageArgumentResolver : ISingleMessageArgumentResolver, IMessageArgumentResolver, IArgumentResolver
- Inheritance
-
TombstoneMessageArgumentResolver
- Implements
- Inherited Members
Constructors
TombstoneMessageArgumentResolver()
public TombstoneMessageArgumentResolver()
Properties
SkipInvocationIfNull
Gets a value indicating whether the subscriber invocation should be skipped if the resolved value is null.
public bool SkipInvocationIfNull { get; }
Property Value
Methods
CanResolve(Type)
Returns a boolean value indicating whether this resolver instance can handle the parameter of the specified type.
public bool CanResolve(Type parameterType)
Parameters
parameterTypeTypeThe type of the parameter to be resolved.
Returns
- bool
A boolean value indicating whether the specified parameter type can be handled.
GetMessageType(Type)
Returns the actual message type in the specified parameter type (e.g. TMessage) for a parameter
declared as IEnumerable<TMessage>.
public Type GetMessageType(Type parameterType)
Parameters
parameterTypeTypeThe type of the parameter to be resolved.
Returns
- Type
The actual message type.
GetValue(object?, Type)
Returns the message value in a shape that is compatible with the subscribed method.
public object? GetValue(object? message, Type parameterType)
Parameters
messageobjectThe message being published.
parameterTypeTypeThe type of the parameter to be resolved.
Returns
- object
The actual value to be forwarded to the subscribed method.