public ExceptionSenderTask( ILogger logger, ExceptionSenderOptions options, IHostingEnvironment hostingEnvironment) { this.logger = logger; this.options = options; this.contentRootPath = hostingEnvironment.ContentRootPath; }
public ExceptionSenderTask( ILogger logger, ExceptionSenderOptions options, IHostEnvironment hostEnvironment ) { this.logger = logger; this.options = options; this.contentRootPath = hostEnvironment?.ContentRootPath ?? throw new ArgumentNullException(nameof(hostEnvironment)); }
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; }
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; }