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
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
messageobjectThe message being published.
parameterTypeTypeThe type of the parameter to be resolved.
Returns
- object
The actual value to be forwarded to the subscribed method.