protected void Application_Start() { try { var today = DateTime.Today.ToString("yyyy-MM-dd"); var binDirectory = TypeExtensions.GetBinDirectory(); var nLogInternalFullPath = Path.Combine(binDirectory, "NLog", $"{today}-internal.log"); InternalLogger.LogFile = nLogInternalFullPath; var config = GlobalConfiguration.Configuration; ConnectionStrings.SetOneTime(); ApplicationSettings.SetOneTime(); config.Formatters.JsonFormatter.SerializerSettings.Error = _serializationErrorHandler; //Handle EF6 circular navigation properties var classFactory = Bootstrapper.Init(binDirectory, new[] { "TechChallenge*.dll" }); Logger = classFactory.GetExport <Eml.Logger.ILogger>(); config.DependencyResolver = new MefDependencyResolver(classFactory.Container); // web api controllers GlobalConfiguration.Configure(WebApiConfig.Register); } catch (Exception e) { Console.WriteLine(e); var logger = LogManager.GetCurrentClassLogger(); logger.Fatal(e, "A fatal exception was thrown. The application cannot start."); throw; } }
protected UserManagerBase(IMediator mediator, ILogger logger) : base(mediator, logger) { }
protected UserManagerWithContentBase(IMediator mediator, ILogger logger) : base(mediator, logger) { }
protected UserManagerBase(ILogger logger) : base(logger) { }
protected UserManagerWithContentBase(ILogger logger) : base(logger) { }