예제 #1
0
 public JsonRpcRunner(IConfigProvider configurationProvider, Log.ILogManager logManager)
 {
     _configurationProvider = configurationProvider.GetConfig <IJsonRpcConfig>();
     _initConfig            = configurationProvider.GetConfig <IInitConfig>();
     _logManager            = logManager;
     _logger = logManager.GetClassLogger();
 }
예제 #2
0
 public JsonRpcRunner(IConfigProvider configurationProvider, IRpcModuleProvider moduleProvider, Log.ILogManager logManager)
 {
     _jsonRpcConfig  = configurationProvider.GetConfig <IJsonRpcConfig>();
     _initConfig     = configurationProvider.GetConfig <IInitConfig>();
     _moduleProvider = moduleProvider ?? throw new ArgumentNullException(nameof(moduleProvider));
     _logManager     = logManager;
     _logger         = logManager.GetClassLogger();
 }