Class MessageListenerAdapter
public class MessageListenerAdapter : AbstractMessageListenerAdapter, IChannelAwareMessageListener, IMessageListener
- Inheritance
-
MessageListenerAdapter
- Implements
- Inherited Members
Constructors
MessageListenerAdapter(IApplicationContext, ILogger)
public MessageListenerAdapter(IApplicationContext context, ILogger logger = null)
Parameters
context
IApplicationContextlogger
ILogger
MessageListenerAdapter(IApplicationContext, object, ILogger)
public MessageListenerAdapter(IApplicationContext context, object delgate, ILogger logger = null)
Parameters
context
IApplicationContextdelgate
objectlogger
ILogger
MessageListenerAdapter(IApplicationContext, object, ISmartMessageConverter, ILogger)
public MessageListenerAdapter(IApplicationContext context, object delgate, ISmartMessageConverter messageConverter, ILogger logger = null)
Parameters
context
IApplicationContextdelgate
objectmessageConverter
ISmartMessageConverterlogger
ILogger
MessageListenerAdapter(IApplicationContext, object, string, ILogger)
public MessageListenerAdapter(IApplicationContext context, object delgate, string defaultListenerMethod, ILogger logger = null)
Parameters
context
IApplicationContextdelgate
objectdefaultListenerMethod
stringlogger
ILogger
Fields
ORIGINAL_DEFAULT_LISTENER_METHOD
public const string ORIGINAL_DEFAULT_LISTENER_METHOD = "HandleMessage"
Field Value
Properties
DefaultListenerMethod
public string DefaultListenerMethod { get; set; }
Property Value
Instance
public object Instance { get; set; }
Property Value
Methods
AddQueueOrTagToMethodName(string, string)
public void AddQueueOrTagToMethodName(string queueOrTag, string methodName)
Parameters
BuildListenerArguments(object)
protected virtual object[] BuildListenerArguments(object extractedMessage)
Parameters
extractedMessage
object
Returns
- object[]
BuildListenerArguments(object, IModel, IMessage)
protected virtual object[] BuildListenerArguments(object extractedMessage, IModel channel, IMessage message)
Parameters
Returns
- object[]
GetListenerMethodName(IMessage, object)
protected virtual string GetListenerMethodName(IMessage originalMessage, object extractedMessage)
Parameters
Returns
InvokeListenerMethod(string, object[], IMessage)
protected virtual object InvokeListenerMethod(string methodName, object[] arguments, IMessage originalMessage)
Parameters
Returns
OnMessage(IMessage, IModel)
public override void OnMessage(IMessage message, IModel channel)
Parameters
message
IMessagechannel
IModel
RemoveQueueOrTagToMethodName(string)
public string RemoveQueueOrTagToMethodName(string queueOrTag)
Parameters
queueOrTag
string
Returns
SetQueueOrTagToMethodName(Dictionary<string, string>)
public void SetQueueOrTagToMethodName(Dictionary<string, string> queueOrTagToMethodName)
Parameters
queueOrTagToMethodName
Dictionary<string, string>