Ejemplo n.º 1
0
        public X42ClientFeature(
            ServerNodeBase network,
            ILoggerFactory loggerFactory,
            X42ClientSettings x42ClientSettings,
            IServerStats nodeStats,
            IxServerLifetime serverLifetime,
            IAsyncLoopFactory asyncLoopFactory)
        {
            this.serverLifetime    = serverLifetime;
            this.asyncLoopFactory  = asyncLoopFactory;
            this.x42ClientSettings = x42ClientSettings;
            logger = loggerFactory.CreateLogger(GetType().FullName);

            nodeStats.RegisterStats(this.AddComponentStats, StatsType.Component, 1000);
        }
Ejemplo n.º 2
0
 public RoomStats(JScript script, IServerStats stats)
     : base(script, stats)
 {
     this.stats = stats;
     this.PopulateFunctions();
 }