コード例 #1
0
 public DispatcherControlActor(
     IDispatcher <Dispatchable <TEntry, TState> > dispatcher,
     IDispatcherControlDelegate <TEntry, TState> @delegate,
     long checkConfirmationExpirationInterval,
     long confirmationExpiration)
 {
     _dispatcher = dispatcher;
     _delegate   = @delegate;
     _checkConfirmationExpirationInterval = checkConfirmationExpirationInterval;
     _confirmationExpiration = confirmationExpiration;
     _cancellable            = Scheduler.Schedule(this, null, TimeSpan.FromMilliseconds(DefaultRedispatchDelay),
                                                  TimeSpan.FromMilliseconds(checkConfirmationExpirationInterval));
     _dispatcher.ControlWith(this);
 }