-
Notifications
You must be signed in to change notification settings - Fork 35
Message Urn
The body type of a message in Stact is identified using a URN.
The base structure of the URN includes:
urn:(message|request|response):namespace:type[:assembly]
The prefix that denotes the URI as a URN.
The first content segment of the URN, this specifies the type of message represented.
A message is any naked class or a class wrapped in a Message header interface.
A request is a message body wrapped by a Request header interface, and includes information on how to respond to the request.
A response is a message body wrapped by a Response header interface, and includes information to identify the original request to which this is a response.
The namespace defines the scope of the message, and can refer to a language namespace, a module namespace, or whatever.
The type of the message, typically the class name of the message.
.NET If the assembly name is not the same as the namespace, the name of the assembly is included here.
namespace Stact.Messages
{
public class Welcome
If this was defined in the Stact assembly, the following URN would be created:
urn:message:Stact.Messages:Welcome:Stact