public WorkflowHost(IPersistenceProvider persistenceStore, IQueueProvider queueProvider, WorkflowOptions options, ILoggerFactory loggerFactory, IServiceProvider serviceProvider, IWorkflowRegistry registry, IDistributedLockProvider lockProvider, IEnumerable <IBackgroundTask> backgroundTasks, IWorkflowController workflowController, ILifeCycleEventHub lifeCycleEventHub) { PersistenceStore = persistenceStore; QueueProvider = queueProvider; Options = options; Logger = loggerFactory.CreateLogger <WorkflowHost>(); _serviceProvider = serviceProvider; Registry = registry; LockProvider = lockProvider; _backgroundTasks = backgroundTasks; _workflowController = workflowController; lifeCycleEventHub.Subscribe(HandleLifeCycleEvent); }
private void AddEventSubscriptions() { _lifeCycleEventHub.Subscribe(HandleLifeCycleEvent); }