示例#1
0
 public ActorRequestContext SetOps(ProcessOpTransaction ops) =>
     new ActorRequestContext(
         Self,
         Sender,
         Parent,
         CurrentMsg,
         CurrentRequest,
         ProcessFlags,
         ops
     );
示例#2
0
 public ActorRequestContext(
     ActorItem self,
     ProcessId sender,
     ActorItem parent,
     object currentMsg,
     ActorRequest currentRequest,
     ProcessFlags processFlags,
     ProcessOpTransaction ops
     )
 {
     Self = self;
     Sender = sender;
     Parent = parent;
     CurrentMsg = currentMsg;
     CurrentRequest = currentRequest;
     ProcessFlags = processFlags;
     Ops = ops;
 }
 /// <summary>
 /// Run the operations that affect the settings and sending of tells
 /// in the order which they occured in the actor
 /// </summary>
 public Unit RunOps()
 {
     if (Ops != null)
     {
         while (Ops.Ops.Count > 0)
         {
             var ops = Ops;
             Ops = ProcessOpTransaction.Start(Ops.ProcessId);
             ops.Run();
         }
     }
     return unit;
 }
 public void SetOps(ProcessOpTransaction ops)
 {
     Ops = ops;
 }