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; }
public StandardPayload(SMQActorBase actor) : this(actor, String.Empty) { }
public StandardPayload(SMQActorBase actor, string content) : this(actor, content, true) { }
public void SetActor(SMQActorBase actor) { this.__Actor = actor; }