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