示例#1
0
        public MicroServiceHost(ServiceCollection services)
        {
            this.Id              = Guid.NewGuid().ToString("N");
            _services            = services;
            _scheduleTaskManager = new ScheduleTaskManager(this);

            registerServices();
        }
示例#2
0
 public ProcessExitHandler(
     TransactionDelegateCenter transactionDelegateCenter,
     ScheduleTaskManager scheduleTaskManager,
     ILogger <ProcessExitHandler> logger)
 {
     _transactionDelegateCenter = transactionDelegateCenter;
     _logger = logger;
     _scheduleTaskManager = scheduleTaskManager;
 }
示例#3
0
 public ProcessExitHandler(
     TransactionDelegateCenter transactionDelegateCenter,
     ScheduleTaskManager scheduleTaskManager,
     SafeTaskFactory safeTaskFactory,
     ILogger <ProcessExitHandler> logger)
 {
     this._safeTaskFactory      = safeTaskFactory;
     _transactionDelegateCenter = transactionDelegateCenter;
     _logger = logger;
     _scheduleTaskManager = scheduleTaskManager;
 }