コード例 #1
0
        public SignalR.Hub.Model.Domain.Config Load()
        {
            var config = new SignalR.Hub.Model.Domain.Config();

            config.AutoRegisterNickserv = Settings.Default.AutoRegisterNickserv;
            config.ElasticSearchHost    = Settings.Default.ElasticSearchHost;
            config.ElasticSearchPort    = Settings.Default.ElasticSearchPort;
            config.FileHandlers         = Settings.Default.GetFileHandlers();
            config.IrcNick              = Settings.Default.IrcNick;
            config.IrcPasswort          = Settings.Default.IrcPasswort;
            config.IrcRegisterEmail     = Settings.Default.IrcRegisterEmail;
            config.JabberPassword       = Settings.Default.JabberPassword;
            config.JabberServer         = Settings.Default.JabberServer;
            config.JabberUser           = Settings.Default.JabberUser;
            config.MaxDownloadSpeedInKB = Settings.Default.MaxDownloadSpeedInKB;
            config.Password             = Settings.Default.Password;
            config.ReadyPath            = Settings.Default.ReadyPath;
            config.TempPath             = Settings.Default.TempPath;
            config.UseElasticSearch     = Settings.Default.UseElasticSearch;
            config.UseJabberClient      = Settings.Default.UseJabberClient;
            config.UseWebserver         = Settings.Default.UseWebserver;
            config.WebserverPort        = Settings.Default.WebserverPort;
            config.MaxDownloads         = Settings.Default.MaxDownloads;
            return(config);
        }
コード例 #2
0
ファイル: ConfigHub.cs プロジェクト: scottc/xdcc-grabscher
 public SignalR.Hub.Model.Domain.Config Load()
 {
     var config = new SignalR.Hub.Model.Domain.Config();
     config.AutoRegisterNickserv = Settings.Default.AutoRegisterNickserv;
     config.ElasticSearchHost = Settings.Default.ElasticSearchHost;
     config.ElasticSearchPort = Settings.Default.ElasticSearchPort;
     config.FileHandlers = Settings.Default.GetFileHandlers();
     config.IrcNick = Settings.Default.IrcNick;
     config.IrcPasswort = Settings.Default.IrcPasswort;
     config.IrcRegisterEmail = Settings.Default.IrcRegisterEmail;
     config.JabberPassword = Settings.Default.JabberPassword;
     config.JabberServer = Settings.Default.JabberServer;
     config.JabberUser = Settings.Default.JabberUser;
     config.MaxDownloadSpeedInKB = Settings.Default.MaxDownloadSpeedInKB;
     config.Password = Settings.Default.Password;
     config.ReadyPath = Settings.Default.ReadyPath;
     config.TempPath = Settings.Default.TempPath;
     config.UseElasticSearch = Settings.Default.UseElasticSearch;
     config.UseJabberClient = Settings.Default.UseJabberClient;
     config.UseWebserver = Settings.Default.UseWebserver;
     config.WebserverPort = Settings.Default.WebserverPort;
     return config;
 }
コード例 #3
0
 public void Save(SignalR.Hub.Model.Domain.Config aConfig)
 {
     Settings.Default.AutoRegisterNickserv = aConfig.AutoRegisterNickserv;
     Settings.Default.ElasticSearchHost    = aConfig.ElasticSearchHost;
     Settings.Default.ElasticSearchPort    = aConfig.ElasticSearchPort;
     Settings.Default.SetFileHandlers(aConfig.FileHandlers);
     Settings.Default.IrcNick              = aConfig.IrcNick;
     Settings.Default.IrcPasswort          = aConfig.IrcPasswort;
     Settings.Default.IrcRegisterEmail     = aConfig.IrcRegisterEmail;
     Settings.Default.JabberPassword       = aConfig.JabberPassword;
     Settings.Default.JabberServer         = aConfig.JabberServer;
     Settings.Default.JabberUser           = aConfig.JabberUser;
     Settings.Default.MaxDownloadSpeedInKB = aConfig.MaxDownloadSpeedInKB;
     Settings.Default.Password             = aConfig.Password;
     Settings.Default.ReadyPath            = aConfig.ReadyPath;
     Settings.Default.TempPath             = aConfig.TempPath;
     Settings.Default.UseElasticSearch     = aConfig.UseElasticSearch;
     Settings.Default.UseJabberClient      = aConfig.UseJabberClient;
     Settings.Default.UseWebserver         = aConfig.UseWebserver;
     Settings.Default.WebserverPort        = aConfig.WebserverPort;
     Settings.Default.MaxDownloads         = aConfig.MaxDownloads;
     Settings.Default.Save();
 }