Esempio n. 1
0
 public MvcApplication()
 {
     if (ConfigurationManager.AppSettings["Logging"].AsBool())
     {
         logger = new MvcMusicStore.Models.Logger();
     }
 }
Esempio n. 2
0
 public AccountController(UserManager <ApplicationUser> userManager)
 {
     _userManager  = userManager;
     counterHelper = PerformanceHelper.CreateCounterHelper <Counters>("MvcMusicStore");
     if (ConfigurationManager.AppSettings["Logging"].AsBool())
     {
         logger = new Logger();
     }
 }
Esempio n. 3
0
 public HomeController(ILogger_MusicStore logger)
 {
     this.logger = logger;
     this.logger.LogInfo("Home Controller created succesfully");
 }