Пример #1
0
        private void SaveSettings()
        {
            m_connection.SetSettings(
                from n in m_values
                select(Duplicati.Server.Serialization.Interface.ISetting) new Setting()
            {
                Filter = "",
                Name   = n.Key,
                Value  = n.Value
            }, Database.Connection.APP_SETTINGS_ID);

            long?uploadSpeed = null;

            try
            {
                if (!string.IsNullOrWhiteSpace(this.UploadSpeedLimit))
                {
                    uploadSpeed = Library.Utility.Sizeparser.ParseSize(this.UploadSpeedLimit);
                }
            }
            catch
            {
            }

            Program.LiveControl.UploadLimit = uploadSpeed;
        }
Пример #2
0
 private void SaveSettings()
 {
     m_connection.SetSettings(
         from n in m_values
         select(Duplicati.Server.Serialization.Interface.ISetting) new Setting()
     {
         Filter = "",
         Name   = n.Key,
         Value  = n.Value
     }, Database.Connection.APP_SETTINGS_ID);
 }
Пример #3
0
        private void SaveSettings()
        {
            m_connection.SetSettings(
                from n in m_values
                select(Duplicati.Server.Serialization.Interface.ISetting) new Setting()
            {
                Filter = "",
                Name   = n.Key,
                Value  = n.Value
            }, Database.Connection.APP_SETTINGS_ID);

            // In case the usage reporter is enabled or disabled, refresh now
            Program.StartOrStopUsageReporter();
        }
Пример #4
0
        private void SaveSettings()
        {
            m_connection.SetSettings(
                from n in m_values
                select(Duplicati.Server.Serialization.Interface.ISetting) new Setting()
            {
                Filter = "",
                Name   = n.Key,
                Value  = n.Value
            }, Database.Connection.SERVER_SETTINGS_ID);

            System.Threading.Interlocked.Increment(ref Program.LastDataUpdateID);
            Program.StatusEventNotifyer.SignalNewEvent();

            // In case the usage reporter is enabled or disabled, refresh now
            Program.StartOrStopUsageReporter();
            // If throttle options were changed, update now
            Program.UpdateThrottleSpeeds();
        }