public NetworkFeatures( ServerNodeBase network, ServerSettings nodeSettings, ILoggerFactory loggerFactory, DatabaseSettings databaseSettings, X42ClientSettings x42ClientSettings, IxServerLifetime serverLifetime, IAsyncLoopFactory asyncLoopFactory, X42ClientFeature x42FullNode, DatabaseFeatures database, NetworkSettings networkSettings ) { this.network = network; this.nodeSettings = nodeSettings; logger = loggerFactory.CreateLogger(GetType().FullName); this.databaseSettings = databaseSettings; this.serverLifetime = serverLifetime; this.asyncLoopFactory = asyncLoopFactory; this.x42ClientSettings = x42ClientSettings; this.x42FullNode = x42FullNode; this.database = database; this.networkSettings = networkSettings; cachedServerInfo = new CachedServerInfo(); x42Client = new X42Node(x42ClientSettings.Name, x42ClientSettings.Address, x42ClientSettings.Port, logger, serverLifetime, asyncLoopFactory, false); }
public NetworkMonitor( ILogger mainLogger, IxServerLifetime serverLifetime, IAsyncLoopFactory asyncLoopFactory, DatabaseSettings databaseSettings, NetworkFeatures networkFeatures, ServerNodeBase network, NetworkSettings networkSettings ) { logger = mainLogger; this.serverLifetime = serverLifetime; this.asyncLoopFactory = asyncLoopFactory; this.databaseSettings = databaseSettings; this.networkFeatures = networkFeatures; this.network = network; this.networkSettings = networkSettings; NetworkStartupStatus = StartupStatus.NotStarted; }