public ReportController(IConfigService configService, IAppService appService, IServerNodeService serverNodeService, IRemoteServerNodeProxy remoteServerNodeProxy) { _appService = appService; _configService = configService; _serverNodeService = serverNodeService; _remoteServerNodeProxy = remoteServerNodeProxy; }
public ServerNodeController(IServerNodeService serverNodeService, ISysLogService sysLogService, IRemoteServerNodeProxy remoteServerNodeProxy) { _serverNodeService = serverNodeService; _sysLogService = sysLogService; _remoteServerNodeProxy = remoteServerNodeProxy; }
public RemoteServerProxyController(IRemoteServerNodeProxy remoteServerNodeProxy, IServerNodeService serverNodeService, ILoggerFactory loggerFactory, ISysLogService sysLogService) { _remoteServerNodeProxy = remoteServerNodeProxy; _logger = loggerFactory.CreateLogger <RemoteServerProxyController>(); }
public EventRegister(IRemoteServerNodeProxy remoteServerNodeProxy) { _appService = new AppService(new FreeSqlContext(FreeSQL.Instance)); _configService = new ConfigService(new FreeSqlContext(FreeSQL.Instance), null, _appService); _sysLogService = new SysLogService(new FreeSqlContext(FreeSQL.Instance)); _modifyLogService = new ModifyLogService(new FreeSqlContext(FreeSQL.Instance)); _serverNodeService = new ServerNodeService(new FreeSqlContext(FreeSQL.Instance)); _remoteServerNodeProxy = remoteServerNodeProxy; }
public ConfigController( IConfigService configService, IModifyLogService modifyLogService, IRemoteServerNodeProxy remoteServerNodeProxy, IServerNodeService serverNodeService, ISysLogService sysLogService) { _configService = configService; _modifyLogService = modifyLogService; _remoteServerNodeProxy = remoteServerNodeProxy; _serverNodeService = serverNodeService; _sysLogService = sysLogService; }
public ConfigController( IConfigService configService, IAppService appService, IModifyLogService modifyLogService, IRemoteServerNodeProxy remoteServerNodeProxy, IServerNodeService serverNodeService, IAppBasicAuthService appBasicAuthService) { _configService = configService; _appService = appService; _modifyLogService = modifyLogService; _remoteServerNodeProxy = remoteServerNodeProxy; _serverNodeService = serverNodeService; _appBasicAuthService = appBasicAuthService; }
public static void Main(string[] args) { var builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()); #if DEBUG Configuration.Config = builder .AddJsonFile("appsettings.Development.json") .AddEnvironmentVariables() .Build(); #else Configuration.Config = builder.AddJsonFile("appsettings.json").AddEnvironmentVariables().Build(); #endif var host = CreateWebHostBuilder(args) .Build(); var sp = host.Services; RemoteServerNodeProxy = sp.CreateScope().ServiceProvider.GetService <IRemoteServerNodeProxy>();; RemoteServerNodeProxy.TestEchoAsync(); host.Run(); }
public InitService(IRemoteServerNodeProxy proxy, IEventRegister eventRegister) { _remoteServerNodeProxy = proxy; _eventRegister = eventRegister; }
public EventRegister(IRemoteServerNodeProxy remoteServerNodeProxy) { _remoteServerNodeProxy = remoteServerNodeProxy; }