예제 #1
0
 public MockStopwatch(string tag, TimeSpan elapsed, TimeLineProvider timelineProvider, ConcurrentQueue<IAsyncTimedEvent> timeline)
 {
     Tag = tag;
     _timelineProvider = timelineProvider;
     _timeline = timeline;
     Elapsed = elapsed;
 }
예제 #2
0
 public MockStopwatch(string tag, TimeSpan elapsed, TimeLineProvider timelineProvider, ConcurrentQueue <IAsyncTimedEvent> timeline)
 {
     Tag = tag;
     _timelineProvider = timelineProvider;
     _timeline         = timeline;
     Elapsed           = elapsed;
 }
예제 #3
0
        internal AwaitableBuilder(TimeLineProvider timelineProvider, ConcurrentQueue <IAsyncTimedEvent> timeline, Func <T> result)
        {
            _timelineProvider = timelineProvider;
            _timeline         = timeline;
            _task             = async() =>
            {
                await Task.Yield();

                return(result());
            };
        }
예제 #4
0
 public AsyncTimedEvent(string tag, TimeLineProvider timeline)
 {
     Tag       = tag;
     _timeline = timeline;
 }