public static void Main(string[] args) { ILogger _logger = NinjectWebKernel.CreateKernel().Get <ILogger>(); _logger.Debug($"-------- MAIL STARTED --------"); var service = NinjectWebKernel.CreateKernel().Get <ConsoleMailerService>(); service.RunMailService(); _logger.Debug($"-------- MAIL FINISHED --------"); }
public static void Main(string[] args) { var service = NinjectWebKernel.CreateKernel().Get <ConsoleMailerService>(); service.RunMailService(); }