From 58d45951cdee1f80d261a69996c6329555b311cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Sat, 28 Nov 2020 16:53:23 +0100 Subject: [PATCH] change logtype --- AutoFacSamles/Program.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/AutoFacSamles/Program.cs b/AutoFacSamles/Program.cs index 2fcb338..41c7ba8 100644 --- a/AutoFacSamles/Program.cs +++ b/AutoFacSamles/Program.cs @@ -16,6 +16,15 @@ namespace AutoFacSamles } } + public class EmailLog : ILog + { + private const string adminEmail = "tfoman@oeman.se"; + public void Write(string message) + { + Console.WriteLine($"Email sent to {adminEmail} : {message}"); + } + } + public class Engine { private ILog log; @@ -55,7 +64,7 @@ namespace AutoFacSamles static void Main(string[] args) { var builder = new ContainerBuilder(); - builder.RegisterType().As(); + builder.RegisterType().As(); builder.RegisterType(); builder.RegisterType();