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();