示例#1
0
        static void Main(string[] args)
        {
            try
            {
                LogExample.Run();

                ConfigExample.Run();
            }
            catch (Exception e)
            {
                Log.Error(e);
            }
        }
示例#2
0
        public bool Active = true; //serialazable

        public void Notify(string message)
        {
            ConfigExample.Message(Settings.Server.Host, Settings.Server.Port, Settings.Server.Password?.Value, message);
        }
        public bool Active = true; //serialazable

        public void Notify(string message)
        {
            ConfigExample.Email(Settings.Smtp.Host, Settings.Smtp.Port, Settings.Smtp.Password, message);
        }