Ejemplo n.º 1
0
        public override void Initialize(JobProcessor thread)
        {
            ConnectionStringLoader.LoadFromServiceCore(Settings.Default);
            DSContents.Initialize();
            base.Initialize(thread, DSServiceOperations.TypeConverters);
            base.RegisterMessage(OperationMessages.TypeConverters);
            base.RegisterAllProcessors(Assembly.GetExecutingAssembly());
            this.MessageHandlerFactory = new MessageHandlerFactory(true);
            this.MessageHandlerFactory.Register <DSEntity>(Messages.TypeConverters, "ProcessMessage");
            this.InitializeTcpClientHolder();
            base.Disposed += delegate(object _, EventArgs __)
            {
                this.KillDSProcess();
            };
            this.KillDSProcess();
            DSService.MyIP = this.GetMyIP();
            this.InitializeTcpServer(ServiceCoreSettings.Default.DSServicePort);
            base.OnSetupID += delegate(int id)
            {
                Scheduler.Schedule(base.Thread, Job.Create(new Action(this.SetupDSController)), 0);
            };
            int integer = FeatureMatrix.GetInteger("DSCactiFrequency");

            if (integer > 0)
            {
                this.CactiCsvFileDropper = new CactiCsvFileDropper("Cacti", "DSService", integer, new List <string>
                {
                    "ProcessCount",
                    "FPS_siglint",
                    "FPS_bugeikloth",
                    "FPS_elculous"
                });
                this.CactiCsvFileDropper.FileDropStarted += this.GetCactiInformation;
            }
            FeatureMatrix.onUpdated += this.OnUpdatedFetureMatrix;
        }
Ejemplo n.º 2
0
 static DSContents()
 {
     DSContents.Load();
     HeroesContentsLoader.DB3Changed += DSContents.Load;
 }