Esempio n. 1
0
 private void ConfigurationChanged(object sender, YAUL.Data.GenericEventArgs <AppConfig> e)
 {
     if (e.Value.StreamNotifierSettings.Enabled)
     {
         Start();
     }
     else
     {
         Stop();
     }
 }
Esempio n. 2
0
        private static void Log_LogEmitted(object sender, YAUL.Data.GenericEventArgs <string> e)
        {
            Console.WriteLine(e.Value);

            try
            {
                using var sw = File.AppendText(LogFile);
                sw.AutoFlush = true;
                sw.WriteLine(e.Value);
            }
            catch { }
        }