Interface IHandlerMethodReturnValueHandler
- Namespace
- Steeltoe.Messaging.Handler.Invocation
- Assembly
- Steeltoe.Messaging.Abstractions.dll
Strategy interface to handle the value returned from the invocation of a method handling a Message.
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public interface IHandlerMethodReturnValueHandler
Methods
HandleReturnValue(object, ParameterInfo, IMessage)
Handle the given return value.
void HandleReturnValue(object returnValue, ParameterInfo returnType, IMessage message)
Parameters
returnValueobjectthe value returned from the handler method
returnTypeParameterInfothe type of the return value
messageIMessagethe message that was passed to the handler
SupportsReturnType(ParameterInfo)
Determine whether the given method return type is supported by this handler.
bool SupportsReturnType(ParameterInfo returnType)
Parameters
returnTypeParameterInfothe return parameter info
Returns
- bool
true if it supports the supplied return type