Craig's Utility Library
4.0 Beta
|
Messaging system base class More...
Public Member Functions | |
void | Initialize (IEnumerable< IFormatter > Formatters) |
Initializes the system More... | |
async Task | Send< T > (IMessage Message, T Model=null) |
Sends a message asynchronously More... | |
async Task | Send (IMessage Message) |
Sends a message asynchronously More... | |
Protected Member Functions | |
MessagingSystemBase () | |
Constructor More... | |
abstract void | InternalSend (IMessage message) |
Internal function More... | |
Properties | |
IEnumerable< IFormatter > | Formatters [get] |
Formatters that the system have available More... | |
abstract Type | MessageType [get] |
Message type that this handles More... | |
abstract string | Name [get] |
Name of the messaging system More... | |
Properties inherited from Utilities.IO.Messaging.Interfaces.IMessagingSystem | |
Type | MessageType [get] |
Message type used by the communicator More... | |
string | Name [get] |
Name of the communicator More... | |
Messaging system base class
Definition at line 33 of file MessagingSystemBase.cs.
|
protected |
Constructor
Definition at line 38 of file MessagingSystemBase.cs.
void Utilities.IO.Messaging.BaseClasses.MessagingSystemBase.Initialize | ( | IEnumerable< IFormatter > | Formatters | ) |
Initializes the system
Formatters | Passes in the list of formatters that the system has found |
Definition at line 62 of file MessagingSystemBase.cs.
|
protectedpure virtual |
Internal function
message | The message. |
async Task Utilities.IO.Messaging.BaseClasses.MessagingSystemBase.Send | ( | IMessage | Message | ) |
Sends a message asynchronously
Message | Message to send |
Implements Utilities.IO.Messaging.Interfaces.IMessagingSystem.
Definition at line 98 of file MessagingSystemBase.cs.
async Task Utilities.IO.Messaging.BaseClasses.MessagingSystemBase.Send< T > | ( | IMessage | Message, |
T | Model = null |
||
) |
Sends a message asynchronously
T | Model type |
Message | Message to send |
Model | Model object |
Implements Utilities.IO.Messaging.Interfaces.IMessagingSystem.
T | : | class |
Definition at line 75 of file MessagingSystemBase.cs.
|
get |
Formatters that the system have available
Definition at line 46 of file MessagingSystemBase.cs.
|
get |
Message type that this handles
Definition at line 51 of file MessagingSystemBase.cs.
|
get |
Name of the messaging system
Definition at line 56 of file MessagingSystemBase.cs.