Table of Contents

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

parameterType Type

The type of the parameter to be resolved.

serviceProvider IServiceProvider

The IServiceProvider to be used to resolve the necessary services.

cancellationToken CancellationToken

The CancellationToken that can be used to cancel the subscriber method operation.

Returns

object

A value to be forwarded to the subscribed method.