Example #1
0
        protected override void Start(VgcApis.Interfaces.Services.IApiService api)
        {
            this.api   = api;
            vgcSetting = api.GetSettingService();
            vgcServers = api.GetServersService();

            settings = new Services.Settings();
            settings.Run(vgcSetting, vgcServers);
        }
Example #2
0
 public Misc(
     Services.Settings settings,
     VgcApis.Interfaces.Services.IApiService api)
 {
     this.settings = settings;
     vgcUtils      = api.GetUtilsService();
     vgcSlinkMgr   = api.GetShareLinkMgrService();
     vgcServer     = api.GetServersService();
     vgcSettings   = api.GetSettingService();
 }
Example #3
0
        public void Run(
            VgcApis.Interfaces.Services.ISettingsService vgcSetting)
        {
            this.vgcSetting = vgcSetting;
            this.luaAcm     = new Libs.LuaSnippet.LuaAcm();

            userSettings = VgcApis.Misc.Utils
                           .LoadPluginSetting <Models.Data.UserSettings>(
                pluginName, vgcSetting);

            userSettings.NormalizeData();
        }
Example #4
0
 public Misc(
     VgcApis.Interfaces.Services.IApiService api,
     Services.Settings settings,
     Services.FormMgrSvc formMgr)
 {
     this.settings = settings;
     this.formMgr  = formMgr;
     vgcNotifier   = api.GetNotifierService();
     vgcUtils      = api.GetUtilsService();
     vgcSlinkMgr   = api.GetShareLinkMgrService();
     vgcServer     = api.GetServersService();
     vgcSettings   = api.GetSettingService();
 }
Example #5
0
        public void Run(
            VgcApis.Interfaces.Services.ISettingsService vgcSetting,
            VgcApis.Interfaces.Services.IServersService vgcServers)
        {
            this.vgcSetting = vgcSetting;
            this.vgcServers = vgcServers;

            userSettins = LoadUserSetting();
            bookKeeper  = new VgcApis.Libs.Tasks.LazyGuy(
                SaveUserSetting, VgcApis.Models.Consts.Intervals.LazySaveStatisticsDatadelay);
            StartBgStatsDataUpdateTimer();
            vgcServers.OnCoreClosing += SaveStatDataBeforeCoreClosed;
        }
Example #6
0
 public void Run(VgcApis.Interfaces.Services.IApiService vgcApi)
 {
     vgcServers   = vgcApi.GetServersService();
     vgcSetting   = vgcApi.GetSettingService();
     userSettings = LoadUserSettings();
 }
Example #7
0
 public void Run(
     VgcApis.Interfaces.Services.ISettingsService setting)
 {
     this.setting = setting;
     userSettings = LoadUserSettings();
 }