Beispiel #1
0
        public ProfileFeature(
            ServerNodeBase network,
            ServerSettings nodeSettings,
            ILoggerFactory loggerFactory,
            DatabaseSettings databaseSettings,
            X42ClientSettings x42ClientSettings,
            IxServerLifetime serverLifetime,
            IAsyncLoopFactory asyncLoopFactory,
            X42ClientFeature x42FullNode,
            DatabaseFeatures database,
            NetworkFeatures networkFeatures,
            XServer xServer
            )
        {
            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.networkFeatures   = networkFeatures;
            this.xServer           = xServer;

            x42Client = new X42Node(x42ClientSettings.Name, x42ClientSettings.Address, x42ClientSettings.Port, logger, serverLifetime, asyncLoopFactory, false);
        }
        public NetworkMonitor(
            ILogger mainLogger,
            IX42ServerLifetime serverLifetime,
            IAsyncLoopFactory asyncLoopFactory,
            DatabaseSettings databaseSettings,
            X42ClientSettings x42ClientSettings
            )
        {
            logger = mainLogger;
            this.serverLifetime    = serverLifetime;
            this.asyncLoopFactory  = asyncLoopFactory;
            this.databaseSettings  = databaseSettings;
            this.x42ClientSettings = x42ClientSettings;

            x42Client = new X42Node(x42ClientSettings.Name, x42ClientSettings.Address, x42ClientSettings.Port, logger, serverLifetime, asyncLoopFactory, false);
        }
Beispiel #3
0
 public NetworkFeatures(
     MasterNodeBase network,
     ILoggerFactory loggerFactory,
     DatabaseSettings databaseSettings,
     X42ClientSettings x42ClientSettings,
     IX42ServerLifetime serverLifetime,
     IAsyncLoopFactory asyncLoopFactory
     )
 {
     this.network           = network;
     logger                 = loggerFactory.CreateLogger(GetType().FullName);
     this.databaseSettings  = databaseSettings;
     this.x42ClientSettings = x42ClientSettings;
     this.serverLifetime    = serverLifetime;
     this.asyncLoopFactory  = asyncLoopFactory;
 }