Class MethodInvokingMessageProcessor<T>
- Namespace
- Steeltoe.Integration.Handler
- Assembly
- Steeltoe.Integration.IntegrationBase.dll
public class MethodInvokingMessageProcessor<T> : AbstractMessageProcessor<T>, IMessageProcessor<T>, IMessageProcessor, ILifecycle
Type Parameters
T
- Inheritance
-
MethodInvokingMessageProcessor<T>
- Implements
- Inherited Members
Constructors
MethodInvokingMessageProcessor(IApplicationContext, object, MethodInfo)
public MethodInvokingMessageProcessor(IApplicationContext context, object targetObject, MethodInfo method)
Parameters
context
IApplicationContexttargetObject
objectmethod
MethodInfo
MethodInvokingMessageProcessor(IApplicationContext, object, Type)
public MethodInvokingMessageProcessor(IApplicationContext context, object targetObject, Type attribute)
Parameters
context
IApplicationContexttargetObject
objectattribute
Type
Properties
ConversionService
public virtual IConversionService ConversionService { get; set; }
Property Value
IsRunning
Gets a value indicating whether gets a value indicating if its running
public bool IsRunning { get; }
Property Value
Methods
ProcessMessage(IMessage)
Process a message and return a value or null
public override T ProcessMessage(IMessage message)
Parameters
message
IMessagemessage to process
Returns
- T
result after processing
Start()
Start this component
public Task Start()
Returns
- Task
a task to signal completion
Stop()
Stop this component
public Task Stop()
Returns
- Task
a task to signal completion