Пример #1
0
 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;
 }
Пример #3
0
 public RemoteServerProxyController(IRemoteServerNodeProxy remoteServerNodeProxy,
                                    IServerNodeService serverNodeService,
                                    ILoggerFactory loggerFactory,
                                    ISysLogService sysLogService)
 {
     _remoteServerNodeProxy = remoteServerNodeProxy;
     _logger = loggerFactory.CreateLogger <RemoteServerProxyController>();
 }
Пример #4
0
        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;
        }
Пример #5
0
 public ConfigController(
     IConfigService configService,
     IModifyLogService modifyLogService,
     IRemoteServerNodeProxy remoteServerNodeProxy,
     IServerNodeService serverNodeService,
     ISysLogService sysLogService)
 {
     _configService         = configService;
     _modifyLogService      = modifyLogService;
     _remoteServerNodeProxy = remoteServerNodeProxy;
     _serverNodeService     = serverNodeService;
     _sysLogService         = sysLogService;
 }
Пример #6
0
 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;
 }
Пример #7
0
        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();
        }
Пример #8
0
 public InitService(IRemoteServerNodeProxy proxy, IEventRegister eventRegister)
 {
     _remoteServerNodeProxy = proxy;
     _eventRegister         = eventRegister;
 }
Пример #9
0
 public EventRegister(IRemoteServerNodeProxy remoteServerNodeProxy)
 {
     _remoteServerNodeProxy = remoteServerNodeProxy;
 }