Esempio n. 1
0
 public ResourceStatisticsJob(IBackgroundJobClient backgroundJobClient, ILogger <ResourceStatisticsJob> logger, IRemoteReportingService remoteReportingService, IGeneralLogService statisticsLogService)
 {
     _backgroundJobClient = backgroundJobClient;
     _logger = logger;
     _remoteReportingService = remoteReportingService;
     _statisticsLogService   = statisticsLogService;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExceptionMiddleware"/> class.
 /// </summary>
 /// <param name="next">The next.</param>
 public ExceptionMiddleware(RequestDelegate next, IGeneralLogService generalLogService, IHostingEnvironment env, IConfiguration configuration)
 {
     _next = next;
     _generalLogService      = generalLogService;
     _jsonSerializerSettings = new JsonSerializerSettings();
     _jsonSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
     _jsonSerializerSettings.Formatting       = Formatting.Indented;
     _applicationId = configuration["AzureAd:ClientId"];
     _env           = env;
 }
 public LogsController(ILogger <LogsController> logger, IGeneralLogService service)
 {
     this._service = service;
     this._logger  = logger;
 }
 /// <summary>
 /// API endpoint for logging.
 /// </summary>
 public LogController(IGeneralLogService logService)
 {
     _logService = logService;
 }