Class AbstractMethodMessageHandler<T>
Inheritance
System.Object
AbstractMethodMessageHandler<T>
Implements
IServiceNameAware
Assembly: Steeltoe.Messaging.MessagingBase.dll
Syntax
public abstract class AbstractMethodMessageHandler<T> : object, IMessageHandler
Type Parameters
Constructors
|
Edit this page
View Source
AbstractMethodMessageHandler(ILogger)
Declaration
protected AbstractMethodMessageHandler(ILogger logger = null)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Properties
|
Edit this page
View Source
ArgumentResolvers
Declaration
public virtual IList<IHandlerMethodArgumentResolver> ArgumentResolvers { get; set; }
Property Value
|
Edit this page
View Source
CustomArgumentResolvers
Declaration
public virtual IList<IHandlerMethodArgumentResolver> CustomArgumentResolvers { get; set; }
Property Value
|
Edit this page
View Source
CustomReturnValueHandlers
Declaration
public virtual IList<IHandlerMethodReturnValueHandler> CustomReturnValueHandlers { get; set; }
Property Value
|
Edit this page
View Source
DestinationPrefixes
Declaration
public virtual IList<string> DestinationPrefixes { get; set; }
Property Value
Type |
Description |
IList<System.String> |
|
|
Edit this page
View Source
HandlerMethods
Declaration
public virtual IDictionary<T, HandlerMethod> HandlerMethods { get; }
Property Value
|
Edit this page
View Source
MethodArgumentResolvers
Declaration
protected HandlerMethodArgumentResolverComposite MethodArgumentResolvers { get; }
Property Value
|
Edit this page
View Source
MethodReturnValueHandlers
Declaration
protected HandlerMethodReturnValueHandlerComposite MethodReturnValueHandlers { get; }
Property Value
|
Edit this page
View Source
ReturnValueHandlers
Declaration
public virtual IList<IHandlerMethodReturnValueHandler> ReturnValueHandlers { get; set; }
Property Value
|
Edit this page
View Source
ServiceName
Declaration
public virtual string ServiceName { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
CreateExceptionHandlerMethodResolverFor(Type)
Declaration
protected abstract AbstractExceptionHandlerMethodResolver CreateExceptionHandlerMethodResolverFor(Type beanType)
Parameters
Type |
Name |
Description |
Type |
beanType |
|
Returns
|
Edit this page
View Source
CreateHandlerMethod(Object, MethodInfo)
Declaration
protected virtual HandlerMethod CreateHandlerMethod(object handler, MethodInfo method)
Parameters
Type |
Name |
Description |
System.Object |
handler |
|
MethodInfo |
method |
|
Returns
|
Edit this page
View Source
DetectHandlerMethods(Object)
Declaration
protected void DetectHandlerMethods(object handler)
Parameters
Type |
Name |
Description |
System.Object |
handler |
|
|
Edit this page
View Source
GetDestination(IMessage)
Declaration
protected abstract string GetDestination(IMessage message)
Parameters
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetDirectLookupDestinations(T)
Declaration
protected abstract ISet<string> GetDirectLookupDestinations(T mapping)
Parameters
Type |
Name |
Description |
T |
mapping |
|
Returns
Type |
Description |
ISet<System.String> |
|
|
Edit this page
View Source
GetExceptionHandlerMethod(HandlerMethod, Exception)
Declaration
protected virtual InvocableHandlerMethod GetExceptionHandlerMethod(HandlerMethod handlerMethod, Exception exception)
Parameters
Type |
Name |
Description |
HandlerMethod |
handlerMethod |
|
Exception |
exception |
|
Returns
|
Edit this page
View Source
GetLookupDestination(String)
Declaration
protected virtual string GetLookupDestination(string destination)
Parameters
Type |
Name |
Description |
System.String |
destination |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetMappingComparer(IMessage)
Declaration
protected abstract IComparer<T> GetMappingComparer(IMessage message)
Parameters
Returns
Type |
Description |
IComparer<T> |
|
|
Edit this page
View Source
Declaration
protected abstract T GetMappingForMethod(MethodInfo method, Type handlerType)
Parameters
Type |
Name |
Description |
MethodInfo |
method |
|
Type |
handlerType |
|
Returns
|
Edit this page
View Source
GetMatchingMapping(T, IMessage)
Declaration
protected abstract T GetMatchingMapping(T mapping, IMessage message)
Parameters
Type |
Name |
Description |
T |
mapping |
|
IMessage |
message |
|
Returns
|
Edit this page
View Source
HandleMatch(T, HandlerMethod, String, IMessage)
Declaration
protected virtual void HandleMatch(T mapping, HandlerMethod handlerMethod, string lookupDestination, IMessage message)
Parameters
Type |
Name |
Description |
T |
mapping |
|
HandlerMethod |
handlerMethod |
|
System.String |
lookupDestination |
|
IMessage |
message |
|
|
Edit this page
View Source
HandleMessage(IMessage)
Declaration
public virtual void HandleMessage(IMessage message)
Parameters
|
Edit this page
View Source
HandleMessageInternal(IMessage, String)
Declaration
protected virtual void HandleMessageInternal(IMessage message, string lookupDestination)
Parameters
Type |
Name |
Description |
IMessage |
message |
|
System.String |
lookupDestination |
|
|
Edit this page
View Source
HandleNoMatch(ICollection<T>, String, IMessage)
Declaration
protected virtual Task HandleNoMatch(ICollection<T> ts, string lookupDestination, IMessage message)
Parameters
Type |
Name |
Description |
ICollection<T> |
ts |
|
System.String |
lookupDestination |
|
IMessage |
message |
|
Returns
|
Edit this page
View Source
InitArgumentResolvers()
Declaration
protected abstract IList<IHandlerMethodArgumentResolver> InitArgumentResolvers()
Returns
|
Edit this page
View Source
InitReturnValueHandlers()
Declaration
protected abstract IList<IHandlerMethodReturnValueHandler> InitReturnValueHandlers()
Returns
|
Edit this page
View Source
ProcessHandlerMethodException(HandlerMethod, Exception, IMessage)
Declaration
protected virtual void ProcessHandlerMethodException(HandlerMethod handlerMethod, Exception exception, IMessage message)
Parameters
|
Edit this page
View Source
RegisterHandlerMethod(Object, MethodInfo, T)
Declaration
protected virtual void RegisterHandlerMethod(object handler, MethodInfo method, T mapping)
Parameters
Type |
Name |
Description |
System.Object |
handler |
|
MethodInfo |
method |
|
T |
mapping |
|
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Implements
IServiceNameAware