Exemplo n.º 1
0
        /// <summary>
        /// 导航到VideoDetail页面时执行
        /// </summary>
        /// <param name="navigationContext"></param>
        public override void OnNavigatedTo(NavigationContext navigationContext)
        {
            base.OnNavigatedTo(navigationContext);

            isOnNavigatedTo = true;

            // Aria服务器端口
            AriaListenPort = SettingsManager.GetInstance().GetAriaListenPort();

            // Aria的日志等级
            AriaConfigLogLevel ariaLogLevel = SettingsManager.GetInstance().GetAriaLogLevel();

            SelectedAriaLogLevel = ariaLogLevel.ToString("G");

            // Aria同时下载数
            SelectedAriaMaxConcurrentDownload = SettingsManager.GetInstance().GetAriaMaxConcurrentDownloads();

            // Aria最大线程数
            SelectedAriaSplit = SettingsManager.GetInstance().GetAriaSplit();

            // Aria下载速度限制
            AriaMaxOverallDownloadLimit = SettingsManager.GetInstance().GetAriaMaxOverallDownloadLimit();

            // Aria下载单文件速度限制
            AriaMaxDownloadLimit = SettingsManager.GetInstance().GetAriaMaxDownloadLimit();

            // 是否开启Aria http代理
            AllowStatus isAriaHttpProxy = SettingsManager.GetInstance().IsAriaHttpProxy();

            IsAriaHttpProxy = isAriaHttpProxy == AllowStatus.YES;

            // Aria的http代理的地址
            AriaHttpProxy = SettingsManager.GetInstance().GetAriaHttpProxy();

            // Aria的http代理的端口
            AriaHttpProxyPort = SettingsManager.GetInstance().GetAriaHttpProxyListenPort();

            // Aria文件预分配
            AriaConfigFileAllocation ariaFileAllocation = SettingsManager.GetInstance().GetAriaFileAllocation();

            SelectedAriaFileAllocation = ariaFileAllocation.ToString("G");

            isOnNavigatedTo = false;
        }
Exemplo n.º 2
0
 /// <summary>
 /// 设置Aria日志等级
 /// </summary>
 /// <param name="ariaLogLevel"></param>
 /// <returns></returns>
 public bool SetAriaLogLevel(AriaConfigLogLevel ariaLogLevel)
 {
     appSettings.Network.AriaLogLevel = ariaLogLevel;
     return(SetSettings());
 }
Exemplo n.º 3
0
 /// <summary>
 /// 设置Aria日志等级
 /// </summary>
 /// <param name="ariaLogLevel"></param>
 /// <returns></returns>
 public bool SetAriaLogLevel(AriaConfigLogLevel ariaLogLevel)
 {
     settingsEntity.AriaLogLevel = ariaLogLevel;
     return(SetEntity());
 }