LoadSettings() публичный Метод

public LoadSettings ( ) : void
Результат void
Пример #1
0
        public static void Start()
        {
            var settings  = new Settings();
            var ircDaemon = new IrcDaemon(settings.GetIrcMode());

            settings.SetDaemon(ircDaemon);
            settings.LoadSettings();

            if (blocking)
            {
                ircDaemon.Start();
            }
            else
            {
                ircDaemon.ServerRehash += ServerRehash;

                var serverThread = new Thread(ircDaemon.Start)
                {
                    IsBackground = false,
                    Name         = "serverThread-1"
                };

                serverThread.Start();
            }
        }
Пример #2
0
        static void ServerRehash(object sender, RehashEventArgs e)
        {
            var settings = new Settings();

            settings.SetDaemon(e.IrcDaemon);
            settings.LoadSettings();
        }
Пример #3
0
        public static void Start()
        {
            var settings  = new Settings();
            var ircDaemon = new IrcDaemon(settings.GetIrcMode());

            settings.setDaemon(ircDaemon);
            settings.LoadSettings();

            ircDaemon.ServerRehash += ServerRehash;

            var serverThread = new Thread(ircDaemon.Start);

            serverThread.IsBackground = false;
            serverThread.Name         = "serverThread-1";

            serverThread.Start();
        }
Пример #4
0
        public static void Start()
        {
            var settings = new Settings();
            var ircDaemon = new IrcDaemon(settings.GetIrcMode());
            settings.SetDaemon(ircDaemon);
            settings.LoadSettings();

            if (blocking)
            {
                ircDaemon.Start();
            }
            else {
                ircDaemon.ServerRehash += ServerRehash;

                var serverThread = new Thread(ircDaemon.Start)
                {
                    IsBackground = false,
                    Name = "serverThread-1"
                };

                serverThread.Start();
            }
        }
Пример #5
0
 static void ServerRehash(object sender, RehashEventArgs e)
 {
     var settings = new Settings();
     settings.SetDaemon(e.IrcDaemon);
     settings.LoadSettings();
 }
Пример #6
0
        public static void Start()
        {
            var settings = new Settings ();
            var ircDaemon = new IrcDaemon (settings.GetIrcMode ());
            settings.setDaemon (ircDaemon);
            settings.LoadSettings ();

            ircDaemon.ServerRehash += ServerRehash;

            var serverThread = new Thread (ircDaemon.Start);
            serverThread.IsBackground = false;
            serverThread.Name = "serverThread-1";

            serverThread.Start ();
        }