コード例 #1
0
 public ExceptionSenderTask(
     ILogger logger, 
     ExceptionSenderOptions options, 
     IHostingEnvironment hostingEnvironment)
 {
     this.logger = logger;
     this.options = options;
     this.contentRootPath = hostingEnvironment.ContentRootPath;
 }
コード例 #2
0
 public ExceptionSenderTask(
     ILogger logger,
     ExceptionSenderOptions options,
     IHostEnvironment hostEnvironment
     )
 {
     this.logger          = logger;
     this.options         = options;
     this.contentRootPath = hostEnvironment?.ContentRootPath ?? throw new ArgumentNullException(nameof(hostEnvironment));
 }
コード例 #3
0
 public ExceptionAccumulator(
     ILogger<ExceptionAccumulator> logger, 
     IOptions<ExceptionSenderOptions> options, 
     IHostingEnvironment hostingEnvironment,
     ITask<ExceptionSenderTask> exceptionSenderTask) 
 {
     this.logger = logger;
     this.options = options.Value;
     this.contentRootPath = hostingEnvironment.ContentRootPath;
     this.exceptionSenderTask = exceptionSenderTask;
 }
コード例 #4
0
 public ExceptionAccumulator(
     ILogger <ExceptionAccumulator> logger,
     IOptions <ExceptionSenderOptions> options,
     IHostEnvironment hostEnvironment,
     ITask <ExceptionSenderTask> exceptionSenderTask)
 {
     this.logger              = logger;
     this.options             = options.Value;
     this.contentRootPath     = hostEnvironment.ContentRootPath;
     this.exceptionSenderTask = exceptionSenderTask;
 }