コード例 #1
0
        private void OnChangedCurrentCultureEvent(ChangedCurrentCultureEventArgs e)
        {
            var handler = ChangedCurrentCultureEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #2
0
 private static void CounterBusiness_ChangedCurrentCultureEvent(object sender, ChangedCurrentCultureEventArgs e)
 {
     System.Console.WriteLine("Changed culture from {0} to {1} to be able to read counters.", e.PreviousCulture, e.NewCulture);
 }
コード例 #3
0
 private void ChangedCurrentCultureEvent(object sender, ChangedCurrentCultureEventArgs e)
 {
     _console.WriteLine($"Changed culture from {e.PreviousCulture} to {e.NewCulture}.", OutputLevel.Information, null);
 }
コード例 #4
0
 private void ChangedCurrentCultureEvent(object sender, ChangedCurrentCultureEventArgs e)
 {
     _console.WriteLine(string.Format("Changed culture from {0} to {1}.", e.PreviousCulture, e.NewCulture), OutputLevel.Information, null);
 }