public EFCoreOrchestrationSession(
     EFCoreOrchestrationOptions options,
     Func <OrchestrationDbContext> dbContextFactory,
     Instance instance,
     Execution execution,
     OrchestrationRuntimeState runtimeState,
     CancellationToken stopCancellationToken)
 {
     _options               = options;
     _dbContextFactory      = dbContextFactory;
     Instance               = instance;
     Execution              = execution;
     RuntimeState           = runtimeState;
     _stopCancellationToken = stopCancellationToken;
 }
 public EFCoreOrchestrationService(
     IOptions <EFCoreOrchestrationOptions> options,
     Func <OrchestrationDbContext> dbContextFactory,
     OrchestrationDbContextExtensions dbContextExtensions,
     OrchestrationMessageMapper orchestrationMessageMapper,
     ActivityMessageMapper activityMessageMapper,
     InstanceMapper instanceMapper,
     ExecutionMapper executionMapper,
     ILogger <EFCoreOrchestrationService> logger)
 {
     _options                    = options.Value;
     _dbContextFactory           = dbContextFactory;
     _dbContextExtensions        = dbContextExtensions;
     _orchestrationMessageMapper = orchestrationMessageMapper;
     _activityMessageMapper      = activityMessageMapper;
     _instanceMapper             = instanceMapper;
     _executionMapper            = executionMapper;
     _logger = logger;
 }