Interface IAdditionalArgumentResolver
- Namespace
- Silverback.Messaging.Subscribers.ArgumentResolvers
- Assembly
- Silverback.Core.dll
These resolvers are used to try to get a value for the additional parameters (other than the message itself) of the subscribed methods.
public interface IAdditionalArgumentResolver : IArgumentResolver
- Inherited Members
Methods
GetValue(Type, IServiceProvider, CancellationToken)
Returns a suitable value for the parameter of the specified type.
object? GetValue(Type parameterType, IServiceProvider serviceProvider, CancellationToken cancellationToken)
Parameters
parameterTypeTypeThe type of the parameter to be resolved.
serviceProviderIServiceProviderThe IServiceProvider to be used to resolve the necessary services.
cancellationTokenCancellationTokenThe CancellationToken that can be used to cancel the subscriber method operation.
Returns
- object
A value to be forwarded to the subscribed method.