private TimerProcessorItem(object TimingTCS, ITaskCompletionSourceAccessor AccessorTimingTCS)
 {
     this.ExpiryAction      = null;
     this.Result            = null;
     this.Expiry            = null;
     this.TimingTCS         = TimingTCS;
     this.AccessorTimingTCS = AccessorTimingTCS;
 }
 private TimerProcessorItem(object TimingTCS, ITaskCompletionSourceAccessor AccessorTimingTCS)
 {
     this.ExpiryAction      = null;
     this.Result            = null;
     this.Expiry            = null;
     this.TimingTCS         = TimingTCS ?? throw new ArgumentNullException(nameof(TimingTCS));
     this.AccessorTimingTCS = AccessorTimingTCS ?? throw new ArgumentNullException(nameof(AccessorTimingTCS));
 }
Exemplo n.º 3
0
 private TimerProcessorCallBackRequest(TimerProcessorRequest Request,
                                       TimerProcessorItem TimerProcessorItem,
                                       object TCS,
                                       ITaskCompletionSourceAccessor AccessorTCS)
 {
     this.Request            = Request;
     this.TimerProcessorItem = TimerProcessorItem;
     this.TCS         = TCS;
     this.AccessorTCS = AccessorTCS;
 }
 private TimerProcessorItem(DateTime Now, TimeSpan Delay, object TimingTCS, ITaskCompletionSourceAccessor AccessorTimingTCS, TimerExpiryAction?expActiom, object expResult)
 {
     this.ExpiryAction      = expActiom;
     this.Result            = expResult;
     this.Expiry            = Now + Delay;
     this.TimingTCS         = TimingTCS;
     this.AccessorTimingTCS = AccessorTimingTCS;
     if ((Now + TimerProcessor.MinDelay) >= Expiry)
     {
         TryExpire();
     }
 }
 private TimerProcessorItem(DateTime Now, TimeSpan Delay, object TimingTCS, ITaskCompletionSourceAccessor AccessorTimingTCS, TimerExpiryAction?expAction, object expResult)
 {
     this.ExpiryAction      = expAction;
     this.Result            = expResult;
     this.Expiry            = Now + Delay;
     this.TimingTCS         = TimingTCS ?? throw new ArgumentNullException(nameof(TimingTCS));
     this.AccessorTimingTCS = AccessorTimingTCS ?? throw new ArgumentNullException(nameof(AccessorTimingTCS));
     if ((Now + TimerProcessor.MinDelay) >= Expiry)
     {
         TryExpire();
     }
 }