Class MessageSink
Base for ALL implementations that work under MailerService
Inheritance
System.Object
MessageSink
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Web.Messaging
Assembly: Azos.Web.dll
Syntax
public abstract class MessageSink : DaemonWithInstrumentation<MessageDaemon>, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IMessageSink, IConfigurable
Constructors
MessageSink(MessageDaemon)
Declaration
protected MessageSink(MessageDaemon director)
Parameters
Type | Name | Description |
---|---|---|
MessageDaemon | director |
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ErrorHandlingMode
Declaration
[Config]
[ExternalParameter(new string[]{"messaging"})]
public SendMessageErrorHandling ErrorHandlingMode { get; set; }
Property Value
Type | Description |
---|---|
SendMessageErrorHandling |
InstrumentationEnabled
Declaration
[Config]
[ExternalParameter(new string[]{"messaging", "instrumentation"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Azos.Apps.DaemonWithInstrumentation<Azos.Web.Messaging.MessageDaemon>.InstrumentationEnabled
Messenger
Declaration
public IMessenger Messenger { get; }
Property Value
Type | Description |
---|---|
IMessenger |
SupportedChannelNames
Declaration
public virtual IEnumerable<string> SupportedChannelNames { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
SupportedChannels
Declaration
public abstract MsgChannels SupportedChannels { get; }
Property Value
Type | Description |
---|---|
MsgChannels |
Methods
DoSendMsg(Message)
Performs actual sending of msg. This method does not have to be thread-safe as it is called by a single thread
Declaration
protected abstract bool DoSendMsg(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Returns
Type | Description |
---|---|
System.Boolean |
Filter(Message)
Declaration
protected virtual bool Filter(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Returns
Type | Description |
---|---|
System.Boolean |
SendMsg(Message)
Performs actual sending of msg. This method does not have to be thread-safe as it is called by a single thread
Declaration
public bool SendMsg(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IDisposable