Class HandlerMethodReturnValueHandlerComposite
- Namespace
- Steeltoe.Messaging.Handler.Invocation
- Assembly
- Steeltoe.Messaging.MessagingBase.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class HandlerMethodReturnValueHandlerComposite : IAsyncHandlerMethodReturnValueHandler, IHandlerMethodReturnValueHandler
- Inheritance
-
HandlerMethodReturnValueHandlerComposite
- Implements
- Inherited Members
Properties
ReturnValueHandlers
public IList<IHandlerMethodReturnValueHandler> ReturnValueHandlers { get; }
Property Value
Methods
AddHandler(IHandlerMethodReturnValueHandler)
public HandlerMethodReturnValueHandlerComposite AddHandler(IHandlerMethodReturnValueHandler returnValueHandler)
Parameters
returnValueHandlerIHandlerMethodReturnValueHandler
Returns
AddHandlers(IList<IHandlerMethodReturnValueHandler>)
public HandlerMethodReturnValueHandlerComposite AddHandlers(IList<IHandlerMethodReturnValueHandler> handlers)
Parameters
handlersIList<IHandlerMethodReturnValueHandler>
Returns
Clear()
public void Clear()
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 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 bool SupportsReturnType(ParameterInfo returnType)
Parameters
returnTypeParameterInfothe return parameter info
Returns
- bool
true if it supports the supplied return type