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