コード例 #1
0
        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;
                this.AccessToken = actor.AccessToken;
            }
            else
            {
                this.SenderId    = Guid.NewGuid().ToString();
                this.SenderName  = "Unnamed Actor";
                this.AccessToken = null;
            }

            this.Content = content;
        }
コード例 #2
0
 public StandardPayload(SMQActorBase actor)
     : this(actor, String.Empty)
 {
 }
コード例 #3
0
 public StandardPayload(SMQActorBase actor, string content)
     : this(actor, content, true)
 {
 }
コード例 #4
0
 public void SetActor(SMQActorBase actor)
 {
     this.__Actor = actor;
 }