protected void WaitForEventProcessorSequence(long expectedCount, SpinWait spinwait, _MyRunnable myRunnable)
 {
     while (myRunnable.GetSequence.Value != expectedCount)
     {
         //Thread.Sleep(1);
         spinwait.SpinOnce();
     }
 }
 protected void WaitForEventProcessorSequence(long expectedCount, SpinWait spinwait, _MyRunnable myRunnable)
 {
     while (myRunnable.GetSequence.Value != expectedCount)
     {
         //Thread.Sleep(1);
         spinwait.SpinOnce();
     }
 }