diff options
Diffstat (limited to 'src/Notepad/Infrastructure/System/IApplicationEnvironment.cs')
| -rw-r--r-- | src/Notepad/Infrastructure/System/IApplicationEnvironment.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Notepad/Infrastructure/System/IApplicationEnvironment.cs b/src/Notepad/Infrastructure/System/IApplicationEnvironment.cs new file mode 100644 index 0000000..64cc737 --- /dev/null +++ b/src/Notepad/Infrastructure/System/IApplicationEnvironment.cs @@ -0,0 +1,13 @@ +using System;
+
+namespace Notepad.Infrastructure.System {
+ public interface IApplicationEnvironment {
+ void ShutDown();
+ }
+
+ public class ApplicationEnvironment : IApplicationEnvironment {
+ public void ShutDown() {
+ Environment.Exit(Environment.ExitCode);
+ }
+ }
+}
\ No newline at end of file |
