using System.IO; namespace ET.Server { // 知道对方的instanceId,使用这个类发actor消息 public readonly struct ActorMessageSender { public long ActorId { get; } // 最近接收或者发送消息的时间 public long CreateTime { get; } public IActorRequest Request { get; } public bool NeedException { get; } public ETTask Tcs { get; } public ActorMessageSender(long actorId, IActorRequest iActorRequest, ETTask tcs, bool needException) { this.ActorId = actorId; this.Request = iActorRequest; this.CreateTime = TimeHelper.ServerNow(); this.Tcs = tcs; this.NeedException = needException; } } }