Example #1
0
 internal P_LoopStartState(LocalPostingWorker worker, ManualResetEventSlim loopStartedEvent)
 {
     worker.EnsureNotNull(nameof(worker));
     loopStartedEvent.EnsureNotNull(nameof(loopStartedEvent));
     //
     Worker           = worker;
     LoopStartedEvent = loopStartedEvent;
 }
Example #2
0
 internal P_LoopSingleItemPostingState(LocalPostingWorker worker, ILocalSubscription subscription)
 {
     worker.EnsureNotNull(nameof(worker));
     subscription.EnsureNotNull(nameof(subscription));
     //
     _worker            = worker;
     _subscription      = subscription;
     _startTimestamp    = -1L;
     _completeTimestamp = -1L;
 }