コード例 #1
0
 public MvcApplication()
 {
     if (ConfigurationManager.AppSettings["Logging"].AsBool())
     {
         logger = new Logger();
     }
 }
コード例 #2
0
 public HomeController()
 {
     if (ConfigurationManager.AppSettings["Logging"].AsBool())
     {
         logger = new Logger();
     }
 }
コード例 #3
0
 public TimeLogger(IUserLogger userLogger, ITaskManager taskManager, ITask task, IEmailSender emailSender, IErrorLogger errorLogger)
 {
     this.userLogger  = userLogger;
     this.taskManager = taskManager;
     this.task        = task;
     this.emailSender = emailSender;
     this.errorLogger = errorLogger;
 }
コード例 #4
0
 public TimeLogger()
 {
     task        = new TaskLogger();
     emailSender = new EmailSender();
     errorLogger = new ErrorLogger();
     userLogger  = new UserLogger();
     taskManager = new TaskManager();
 }
コード例 #5
0
 public AccountController(UserManager <ApplicationUser> userManager)
 {
     _userManager = userManager;
     if (ConfigurationManager.AppSettings["Logging"].AsBool())
     {
         logger = new Logger();
     }
 }
コード例 #6
0
 public ProductOrdering(IUserLogger userLogger, IProductChecker productChecker, IOrder order, IEmailSender emailSender, IErrorLogger errorLogger, IStockManager stockManager)
 {
     this.userLogger     = userLogger;
     this.productChecker = productChecker;
     this.order          = order;
     this.emailSender    = emailSender;
     this.errorLogger    = errorLogger;
     this.stockManager   = stockManager;
 }
コード例 #7
0
 public ProductOrdering()
 {
     userLogger     = new UserLogger();
     productChecker = new ProductChecker();
     order          = new Order();
     emailSender    = new EmailSender();
     errorLogger    = new ErrorLogger();
     stockManager   = new StockManager();
 }
コード例 #8
0
 public UserRepository(DatabaseOptions databaseOptions, SharedOptions sharedOptions,
                       IDataRepository dataRepository, IUserLogger userAuditLog, IMapper autoMapper)
 {
     DatabaseOptions = databaseOptions ?? throw new ArgumentNullException(nameof(databaseOptions));
     SharedOptions   = sharedOptions ?? throw new ArgumentNullException(nameof(sharedOptions));
     DataRepository  = dataRepository ?? throw new ArgumentNullException(nameof(dataRepository));
     UserAuditLog    = userAuditLog ?? throw new ArgumentNullException(nameof(userAuditLog));
     AutoMapper      = autoMapper ?? throw new ArgumentNullException(nameof(autoMapper));
 }
コード例 #9
0
 public MailFluentMessage(
     UserFluent userFluent,
     IUserLogger userLogger,
     MyMailMessage <TMail> mailMessage)
 {
     this.userFluent  = userFluent;
     this.userLogger  = userLogger;
     this.MailMessage = mailMessage;
 }
コード例 #10
0
 public MailFluent(
     UserFluent userFluent,
     IUserLogger userLogger,
     IEmailReader emailReader)
 {
     this.userFluent  = userFluent;
     this.userLogger  = userLogger;
     this.emailReader = emailReader;
 }
コード例 #11
0
 public UserFluent(
     IUserLogger userLogger,
     IBrowser browser,
     IEmailReader emailReader,
     SettableClock settableClock)
 {
     this.browserFluent = new BrowserFluent(userLogger, browser);
     this.mailFluent    = new MailFluent(this, userLogger, emailReader);
     this.userLogger    = userLogger;
     this.settableClock = settableClock;
 }
コード例 #12
0
 public UserFluent(
     IUserLogger userLogger,
     IEmailReader emailReader,
     SettableClock settableClock,
     ICurrentUserLogger currentUserLogger,
     IFactory factory,
     MailFluent mailFluent,
     BrowserFluent browserFluent)
 {
     this.userLogger        = userLogger;
     this.settableClock     = settableClock;
     this.currentUserLogger = currentUserLogger;
     this.factory           = factory;
     this.mailFluent        = mailFluent;
     this.browserFluent     = browserFluent;
 }
コード例 #13
0
 public BrowserFluent(IUserLogger logs, IBrowser browser) : base(logs, browser)
 {
 }
コード例 #14
0
ファイル: UserHandler.cs プロジェクト: jiimaho/DIExample
 public UserHandler(IUserLogger logger)
 {
     _logger = logger;
 }
コード例 #15
0
 public CurrentUserLogger(IUserLogger logger)
 {
     this.logger = logger;
 }