Class MessageManagerAttribute
An attribute to be marked against any IMessageListener and IMessenger implementations so the system knows how to configure them from the MessageType config setting
If this attribute is not marked against the implementations the system can not use it from the MessageManagerFactory and can not be configured to use it from the config settings
The system provided storage manager has a key of Azure.Inheritance
Inherited Members
Namespace: LemonEdge.API.Messages
Assembly: API.dll
Syntax
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public class MessageManagerAttribute : Attribute
Constructors
MessageManagerAttribute(String, String, Boolean)
Marks this IMessageListener or IMessenger implementation with details on how it can be used in the system
Declaration
public MessageManagerAttribute(string key, string name, bool isListener)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The unique key this message subscription can be refered to. This is the key that can be placed in the MessageType config setting for the system to use this implementation |
System.String | name | The user friendly name for this type of messenger service |
System.Boolean | isListener | True to indicate this is the IMessageListener implementation, false for IMessenger implementations |
Properties
IsListener
True to indicate this is the IMessageListener implementation, false for IMessenger implementations
Declaration
public bool IsListener { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Key
The unique key this message subscription can be refered to. This is the key that can be placed in the MessageType config setting for the system to use this implementation
Declaration
public string Key { get; }
Property Value
Type | Description |
---|---|
System.String |
Name
The user friendly name for this type of messenger service
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |