Interface IHandlerMethodArgumentResolver
Strategy interface for resolving method parameters into argument values in the context of a given request.
Namespace: Steeltoe.Messaging.Handler.Invocation
Assembly: Steeltoe.Messaging.Abstractions.dll
Syntax
public interface IHandlerMethodArgumentResolver
Methods
| Edit this page View SourceResolveArgument(ParameterInfo, IMessage)
Resolves a method parameter into an argument value from a given message.
Declaration
object ResolveArgument(ParameterInfo parameter, IMessage message)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | parameter | the parameter info to consideer |
IMessage | message | the message |
Returns
Type | Description |
---|---|
System.Object | the resolved argument value |
SupportsParameter(ParameterInfo)
Determine whether the given method parameter is supported by this resolver.
Declaration
bool SupportsParameter(ParameterInfo parameter)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | parameter | the parameter info to consideer |
Returns
Type | Description |
---|---|
System.Boolean | true if it is supported |