Class MessageDaemon
Provides implementation for IMessenger service
Inheritance
System.Object
MessageDaemon
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 sealed class MessageDaemon : DaemonWithInstrumentation<IApplicationComponent>, IDisposable, ILocalizedTimeProvider, IInstrumentable, IExternallyParameterized, IMessengerImplementation, IMessenger, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable
Constructors
MessageDaemon(IApplicationComponent)
Declaration
public MessageDaemon(IApplicationComponent director)
Parameters
Type | Name | Description |
---|---|---|
IApplicationComponent | director |
MessageDaemon(IApplication)
Declaration
public MessageDaemon(IApplication app)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app |
Fields
CONFIG_FALLBACK_SINK_SECTION
Declaration
public const string CONFIG_FALLBACK_SINK_SECTION = "fallback-sink"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_MESSAGING_SECTION
Declaration
public const string CONFIG_MESSAGING_SECTION = "messaging"
Field Value
Type | Description |
---|---|
System.String |
CONFIG_SINK_SECTION
Declaration
public const string CONFIG_SINK_SECTION = "sink"
Field Value
Type | Description |
---|---|
System.String |
Properties
ComponentLogTopic
Declaration
public override string ComponentLogTopic { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FallbackSink
Declaration
public IMessageSink FallbackSink { get; set; }
Property Value
Type | Description |
---|---|
IMessageSink |
InstrumentationEnabled
Turns instrumentation on/off
Declaration
[Config(Default = false)]
[ExternalParameter(new string[]{"instrumentation", "messaging"})]
public override bool InstrumentationEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Azos.Apps.DaemonWithInstrumentation<Azos.Apps.IApplicationComponent>.InstrumentationEnabled
LogLevel
Declaration
[Config(Default = MessageType.Warning)]
[ExternalParameter(new string[]{"messaging"})]
public MessageType LogLevel { get; set; }
Property Value
Type | Description |
---|---|
MessageType |
Sink
Gets/sets sink that performs sending
Declaration
public IMessageSink Sink { get; set; }
Property Value
Type | Description |
---|---|
IMessageSink |
Methods
DoConfigure(IConfigSectionNode)
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
Overrides
DoSignalStop()
Declaration
protected override void DoSignalStop()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
DoWaitForCompleteStop()
Declaration
protected override void DoWaitForCompleteStop()
Overrides
SendMsg(Message)
Declaration
public void SendMsg(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Implements
System.IDisposable