Exemple #1
0
        protected virtual void OnRandomDataGenerating(
            object sender,
            int bytes,
            int total)
        {
            var args = new RandomDataGeneratingEventArgs
            {
                BytesDone  = bytes,
                TotalBytes = total
            };

            if (RandomDataGenerating != null)
            {
                RandomDataGenerating(sender, args);
            }
        }
Exemple #2
0
 private static void OnRandomDataGenerating(object sender, RandomDataGeneratingEventArgs e)
 {
     Console.WriteLine($"Generated {e.BytesDone} from {e.TotalBytes} byte(s)...");
 }