示例#1
0
 public InternalMessage(InternalMessageTypes Type, UserObject user, object dataObject, string identifier) : this()
 {
     _Type      = Type;
     User       = user ?? throw new ArgumentNullException(nameof(user));
     DataObject = dataObject;
     Identifier = identifier;
 }
示例#2
0
 public InternalMessage(InternalMessageTypes messageType, object content)
 {
     Id = Guid.NewGuid();
     TimeStamp = DateTime.UtcNow;
     MessageType = messageType;
     Content = content;
     SourceThread = null;
 }
示例#3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="type">Specifies the message type to be used when serializing the tagged message.</param>
 public InternalProxyMessageAttribute(InternalMessageTypes type)
 {
     this.Type = type;
 }