private static void StartReporting(GuildService serv) { if (!FeatureMatrix.IsEnable("ServiceReporter")) { return; } int num = ServiceReporterSettings.Get("GuildService.Interval", 60); ServiceReporter.Instance.Initialize("GuildService"); ServiceReporter.Instance.AddGathering("Stat", new ServiceReporter.GatheringDelegate <int>(serv.OnGatheringStat)); ServiceReporter.Instance.Start(num * 1000); }
public static void StartReporting(DSService serv) { if (!FeatureMatrix.IsEnable("ServiceReporter")) { return; } ServiceReporter.Instance.Initialize("DSService"); int num = ServiceReporterSettings.Get("DSService.FPS.Interval", 60); ServiceReporter.Instance.AddSubject("FPS", null, num * 1000); ServiceReporter.Instance.AddGathering("Stat", new ServiceReporter.GatheringDelegate <int>(serv.OnGatheringStat)); ServiceReporter.Instance.AddGathering("FPS", new ServiceReporter.GatheringDelegate <int>(serv.OnGatheringFPS)); int num2 = ServiceReporterSettings.Get("DSService.Interval", 60); ServiceReporter.Instance.Start(num2 * 1000); }