protected BaseJobExecutorShell(IExecutionEngineLoggerConfig loggerConfig) { string loggerConfigString = string.Empty; if (loggerConfig != null) { if (loggerConfig.LogLevel != null) { loggerConfigString = loggerConfigString + string.Format("akka.loglevel = {0}", loggerConfig.LogLevel.ToUpper()); } if (loggerConfig.LoggerTypeFactory != null) { loggerConfigString = loggerConfigString + string.Format(@" akka.loggers=[""{0}.{1}, {2}""]", loggerConfig.LoggerTypeFactory.Method.ReturnType.Namespace, loggerConfig.LoggerTypeFactory.Method.ReturnType.Name, loggerConfig.LoggerTypeFactory.Method.ReturnType.Assembly.GetName().Name); } } var hocon = CustomHoconString + Environment.NewLine + mailboxString + Environment.NewLine + loggerConfigString; _actorSystem = ActorSystem.Create("Oddjob-Akka-" + Guid.NewGuid(), ConfigurationFactory.ParseString(hocon)); }
public HardInjectedJobExecutorShell(Expression <Func <TJobLayerActor> > jobQueueFunc, Expression <Func <TJobWorkerActor> > workerFunc, Expression <Func <TJobCoordinator> > coordinatorFunc, IExecutionEngineLoggerConfig loggerConfig) : base(loggerConfig) { JobQueueProps = Props.Create(jobQueueFunc); WorkerProps = Props.Create(workerFunc); CoordinatorProps = Props.Create(coordinatorFunc); }
public DependencyInjectedJobExecutorShell(Func <ActorSystem, IDependencyResolver> dependencyResolverCreator, IExecutionEngineLoggerConfig loggerConfig) : base(loggerConfig) { _dependencyResolver = dependencyResolverCreator(_actorSystem); }