Class MessageSubscription
Starter that activates on published messages.
public class MessageSubscription : BaseStarter, IStarter, IModel, IDisposable
- Inheritance
-
MessageSubscription
- Implements
- Inherited Members
- Extension Methods
Remarks
The starter subscribes on a message subject specified by the PROP_MSG_SUBJECT
config. property.
The published message gets passed as run-properties.
If a buffer time (millisec.) was specified, multiple messages published within that buffer time are buffered into one single activation.
Constructors
MessageSubscription(IMessageBroker)
Ctor from msgBroker
.
public MessageSubscription(IMessageBroker msgBroker)
Parameters
msgBroker
IMessageBroker
Fields
PROP_BUFFER
Name of a property that specifies a optional buffer time in miliseconds.
public const string PROP_BUFFER = "Buffer-Ms"
Field Value
PROP_MSG_SUBJECT
Name of a property that specifies the message subject.
public const string PROP_MSG_SUBJECT = "Message-Subject"
Field Value
PROP_RET_RESULT
Name of a property that enables returning a result.
public const string PROP_RET_RESULT = "Return-Result"
Field Value
Remarks
If this property is set to true
AutomationJobMessage must be published with PublishRequest<TRet>(string, object, int)!!
Methods
ChangeEnabledState(bool)
Changes the enabled state of the starter according to enabled
.
protected override void ChangeEnabledState(bool enabled)
Parameters
enabled
bool
Dispose(bool)
Dispose managed resources on disposing
== true.
protected override void Dispose(bool disposing)
Parameters
disposing
bool
InternalInit()
Internal starter initialization.
protected override IStarter InternalInit()