예제 #1
0
 public DelaySendEnvelope(TimePosition at, IMessage toSend)
 {
     MsgId  = Guid.NewGuid();
     At     = at;
     ToSend = toSend;
 }
예제 #2
0
 public void WaitFor(TimePosition position, ManualResetEventSlim cancel)
 {
     cancel.Wait(Now().DistanceUntil(position));
 }
 public DelaySendEnvelope(TimePosition at, Message toSend)
 {
     At     = at;
     ToSend = toSend;
 }