public RpcWorkerChannelFactory(IScriptEventManager eventManager, IEnvironment environment, IRpcServer rpcServer, ILoggerFactory loggerFactory, IOptions <LanguageWorkerOptions> languageWorkerOptions,
                                IOptionsMonitor <ScriptApplicationHostOptions> applicationHostOptions, IRpcWorkerProcessFactory languageWorkerProcessManager)
 {
     _eventManager            = eventManager;
     _loggerFactory           = loggerFactory;
     _workerConfigs           = languageWorkerOptions.Value.WorkerConfigs;
     _rpcWorkerProcessFactory = languageWorkerProcessManager;
 }
 public RpcWorkerChannelFactory(IScriptEventManager eventManager, IEnvironment environment, IRpcServer rpcServer, ILoggerFactory loggerFactory, IOptionsMonitor <LanguageWorkerOptions> languageWorkerOptions,
                                IOptionsMonitor <ScriptApplicationHostOptions> applicationHostOptions, IRpcWorkerProcessFactory rpcWorkerProcessManager)
 {
     _eventManager            = eventManager;
     _loggerFactory           = loggerFactory;
     _rpcWorkerProcessFactory = rpcWorkerProcessManager;
     _environment             = environment;
     _applicationHostOptions  = applicationHostOptions;
 }
Example #3
0
 public GrpcWorkerChannelFactory(IScriptEventManager eventManager, IEnvironment environment, IRpcServer rpcServer, ILoggerFactory loggerFactory, IOptionsMonitor <LanguageWorkerOptions> languageWorkerOptions,
                                 IOptionsMonitor <ScriptApplicationHostOptions> applicationHostOptions, IRpcWorkerProcessFactory rpcWorkerProcessManager, ISharedMemoryManager sharedMemoryManager, IFunctionDataCache functionDataCache, IOptions <WorkerConcurrencyOptions> workerConcurrencyOptions)
 {
     _eventManager             = eventManager;
     _loggerFactory            = loggerFactory;
     _rpcWorkerProcessFactory  = rpcWorkerProcessManager;
     _environment              = environment;
     _applicationHostOptions   = applicationHostOptions;
     _sharedMemoryManager      = sharedMemoryManager;
     _functionDataCache        = functionDataCache;
     _workerConcurrencyOptions = workerConcurrencyOptions;
 }