예제 #1
0
 /// <summary>
 /// Constructor for initialization, possibly with initial state (recovery / savepoint / etc).
 /// </summary>
 /// <param name="environment">The task environment for this task.</param>
 /// <param name="timerService">A specific timer service to use.</param>
 /// <param name="exceptionHandler">To handle uncaught exceptions in the async operations thread pool</param>
 /// <param name="actionExecutor">A mean to wrap all actions performed by this task thread. Currently, only SynchronizedActionExecutor can be used to preserve locking semantics.</param>
 protected StreamTask(
     IEnvironment environment,
     ITimerService timerService = null,
     IUnCaughtExceptionHandler exceptionHandler          = null,
     SynchronizedStreamTaskActionExecutor actionExecutor = null)
     : this(environment, timerService, exceptionHandler, actionExecutor, null)
 {
 }
예제 #2
0
 /// <summary>
 /// Constructor for initialization, possibly with initial state (recovery / savepoint / etc).
 /// </summary>
 /// <param name="environment"></param>
 /// <param name="timerService"></param>
 /// <param name="exceptionHandler"></param>
 /// <param name="actionExecutor"></param>
 /// <param name="mailbox"></param>
 protected StreamTask(
     IEnvironment environment,
     ITimerService timerService,
     IUnCaughtExceptionHandler exceptionHandler,
     SynchronizedStreamTaskActionExecutor actionExecutor,
     ITaskMailbox mailbox)
     : base(environment)
 {
     TimerService = timerService;
     _unCaughtExceptionHandler = exceptionHandler;
     Configuration             = new StreamConfig(TaskConfiguration);
 }