-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathConsoleWriter.cs
More file actions
29 lines (25 loc) · 829 Bytes
/
ConsoleWriter.cs
File metadata and controls
29 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
namespace DomainEventsConsole
{
public static class ConsoleWriter
{
public static void FromUIEventHandlers(string message, params string[] args)
{
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine(message, args);
Console.ResetColor();
}
public static void FromEmailEventHandlers(string message, params string[] args)
{
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine(message, args);
Console.ResetColor();
}
public static void FromRepositories(string message, params string[] args)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine(message, args);
Console.ResetColor();
}
}
}