Exemple #1
0
 public GrpcServerOrchestrationService(
     IOptions <GrpcServerOrchestrationServiceOptions> options,
     IOrchestrationService orchestrationService,
     IOrchestrationServiceClient orchestrationServiceClient,
     ILogger <GrpcServerOrchestrationService> logger,
     IExtendedOrchestrationService extendedOrchestrationService             = null,
     IExtendedOrchestrationServiceClient extendedOrchestrationServiceClient = null)
 {
     _options = options.Value;
     _orchestrationService       = orchestrationService;
     _orchestrationServiceClient = orchestrationServiceClient;
     _logger = logger;
     _extendedOrchestrationService       = extendedOrchestrationService;
     _extendedOrchestrationServiceClient = extendedOrchestrationServiceClient;
 }
Exemple #2
0
 public WorkerOrchestrationService(
     IOrchestrationService innerOrchestrationService,
     IExtendedOrchestrationService innerExtenedOrchestrationService,
     IServiceScopeFactory serviceScopeFactory,
     IEnumerable <ObjectCreator <TaskOrchestration> > orchestrations,
     IEnumerable <ObjectCreator <TaskActivity> > activities,
     bool hasAllOrchestrations,
     bool hasAllActivities)
 {
     _innerOrchestrationService        = innerOrchestrationService;
     _innerExtenedOrchestrationService = innerExtenedOrchestrationService;
     _serviceScopeFactory  = serviceScopeFactory;
     _orchestrations       = orchestrations.OfType <INameVersionInfo>().ToArray();
     _activities           = activities.OfType <INameVersionInfo>().ToArray();
     _hasAllOrchestrations = hasAllOrchestrations;
     _hasAllActivities     = hasAllActivities;
 }