private StandardPayload(SMQActorBase actor, string content, bool final)
        {
            this.PayloadId = Guid.NewGuid().ToString();

            this.Actor = actor;
            if (!ReferenceEquals(this.Actor, null))
            {
                this.SenderId   = actor.SenderId.ToString();
                this.SenderName = actor.SenderName;
            }
            else
            {
                this.SenderId   = Guid.NewGuid().ToString();
                this.SenderName = "Unnamed Actor";
            }

            this.Content = content;
        }
Beispiel #2
0
 public StandardPayload(SMQActorBase actor, string content)
     : this(actor, content, true)
 {
 }
Beispiel #3
0
 public StandardPayload(SMQActorBase actor)
     : this(actor, String.Empty)
 {
 }