Class AbstractAsyncReturnValueHandler
- Namespace
- Steeltoe.Messaging.Handler.Invocation
- Assembly
- Steeltoe.Messaging.MessagingBase.dll
public abstract class AbstractAsyncReturnValueHandler : IAsyncHandlerMethodReturnValueHandler, IHandlerMethodReturnValueHandler
- Inheritance
-
AbstractAsyncReturnValueHandler
- Implements
- Inherited Members
Methods
HandleReturnValue(object, ParameterInfo, IMessage)
Handle the given return value.
public 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
IsAsyncReturnValue(object, ParameterInfo)
Check if async return value
public virtual bool IsAsyncReturnValue(object returnValue, ParameterInfo returnType)
Parameters
returnValueobjectthe value
returnTypeParameterInfo
Returns
- bool
true if the return type represents a async value
SupportsReturnType(ParameterInfo)
Determine whether the given method return type is supported by this handler.
public abstract bool SupportsReturnType(ParameterInfo returnType)
Parameters
returnTypeParameterInfothe return parameter info
Returns
- bool
true if it supports the supplied return type