Esempio n. 1
0
 public ShippingLabelPrinter(IApplicationLogger logger)
 {
     _logger = logger;
 }
 public ApiExceptionMapper(ILogger <ApiExceptionMapper> logger, IApplicationLogger appLogger, IHostingEnvironment environment) : base()
 {
     Logger       = logger ?? throw new ArgumentException($"{GetType().Name}.Ctr parameter {nameof(logger)} cannot be null.");
     AppLogger    = appLogger ?? throw new ArgumentException($"{GetType().Name}.Ctr parameter {nameof(appLogger)} cannot be null.");
     _environment = environment ?? throw new ArgumentException($"{GetType().Name}.Ctr parameter {nameof(environment)} cannot be null.");
 }
Esempio n. 3
0
 public ExceptionInterceptor(IApplicationLogger logService)
 {
     this.loggingService = logService;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="JobProfileSectionController" /> class.
 /// </summary>
 /// <param name="jobProfileRepository">The job profile repository.</param>
 /// <param name="webAppContext">The web application context.</param>
 /// <param name="applicationLogger">application logger</param>
 /// <param name="sitefinityPage">sitefinity</param>
 public JobProfileSectionController(IJobProfileRepository jobProfileRepository, IWebAppContext webAppContext, IApplicationLogger applicationLogger, ISitefinityPage sitefinityPage)
     : base(webAppContext, jobProfileRepository, applicationLogger, sitefinityPage)
 {
 }
Esempio n. 5
0
 public JobProfileStructuredDataController(ISitefinityPage sitefinityPage, IMapper mapper, IStructuredDataInjectionRepository structuredDataInjectionRepository, IApplicationLogger loggingService) : base(loggingService)
 {
     this.structuredDataInjectionRepository = structuredDataInjectionRepository;
     this.mapper         = mapper;
     this.sitefinityPage = sitefinityPage;
 }
Esempio n. 6
0
 public ModelController(IModelApplicationService modelApplicationService,
                        IApplicationLogger applicationLogger)
 {
     _modelApplicationService = modelApplicationService;
     _applicationLogger       = applicationLogger;
 }
Esempio n. 7
0
 public TolerancePolicy(IApplicationLogger logger, TransientFaultHandlingStrategy strategy)
 {
     this.logger   = logger;
     this.strategy = strategy;
 }
 public BodyStyleConfigController(IBodyStyleConfigApplicationService bodyStyleConfigApplicationService, IApplicationLogger applicationLogger, ITextSerializer serializer)
 {
     _bodyStyleConfigApplicationService = bodyStyleConfigApplicationService;
     _applicationLogger = applicationLogger;
     _serializer        = serializer;
 }
Esempio n. 9
0
        public TemplateManager(IEventAggregator events, ITemplateSerializer serializer, IApplicationLogger logger,
                               ILibraryService librarian)
        {
            _events     = events;
            _serializer = serializer;
            _logger     = logger;
            _librarian  = librarian;

            _events.GetEvent <TemplateSelectedEvent>().Subscribe(OnTemplateSelected);
        }
Esempio n. 10
0
 /// <summary>
 /// Initializes DeckPlayer.
 /// </summary>
 /// <param name="service">Deck Service.</param>
 /// <param name="logger">Logger Service.</param>
 public DeckPlayer(IDeck service, IApplicationLogger <DeckPlayer> logger)
 {
     this._service = service;
     this._logger  = logger;
 }
Esempio n. 11
0
 public DeliveryCreator(IAmqpQueue deliveryQueue, IApplicationLogger logger)
 {
     _deliveryQueue = deliveryQueue;
     _logger        = logger;
 }
 public SpellCheckService(IHttpClientService <ISpellcheckService> httpClientService, IApplicationLogger applicationLogger)
 {
     this.httpClientService = httpClientService;
     this.applicationLogger = applicationLogger;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JobProfileSearchBoxController"/> class.
 /// Constructor JobProfileSearchBoxController
 /// </summary>
 /// <param name="searchService">searchService</param>
 /// <param name="webAppContext">webAppContext</param>
 /// <param name="mapper">mapper</param>
 /// <param name="applicationLogger">applicationLogger</param>
 /// <param name="asyncHelper">asyncHelper</param>
 /// <param name="spellcheckService">spellCheckService</param>
 /// <param name="jobProfileSearchResultsManipulator">jobProfileSearchResultsManipulator</param>
 public JobProfileSearchBoxController(ISearchQueryService <JobProfileIndex> searchService, IWebAppContext webAppContext, IMapper mapper, IApplicationLogger applicationLogger, IAsyncHelper asyncHelper, ISpellcheckService spellcheckService) : base(applicationLogger)
 {
     this.searchQueryService = searchService;
     this.webAppContext      = webAppContext;
     this.mapper             = mapper;
     this.asyncHelper        = asyncHelper;
     this.spellcheckService  = spellcheckService;
 }
 public InstrumentationInterceptor(IApplicationLogger logService)
 {
     loggingService = logService;
 }
Esempio n. 15
0
 public FuelSystemControlTypeController(IFuelSystemControlTypeApplicationService fuelSystemControlTypeApplicationService,
                                        IApplicationLogger logger)
 {
     _fuelSystemControlTypeApplicationService = fuelSystemControlTypeApplicationService;
     _applicationLogger = logger;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestContext"/> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 public RequestContext(IApplicationLogger logger)
 {
     Logger = logger;
 }
Esempio n. 17
0
 public VocSurveyController(IGovUkNotify govUkNotify, IWebAppContext webAppContext, IApplicationLogger applicationLogger) : base(applicationLogger)
 {
     govUkNotifyService = govUkNotify;
     this.webAppContext = webAppContext;
 }
Esempio n. 18
0
 public SkillsFrameworkDataImportController(IApplicationLogger applicationLogger, IImportSkillsFrameworkDataService importSkillsFrameworkDataService, IReportAuditRepository reportAuditRepository, IWebAppContext webAppContext) : base(applicationLogger)
 {
     this.importSkillsFrameworkDataService = importSkillsFrameworkDataService;
     this.reportAuditRepository            = reportAuditRepository;
     this.webAppContext = webAppContext;
 }
 public CourseSearchLogger(IApplicationLogger applicationLogger)
 {
     this.applicationLogger = applicationLogger;
 }
Esempio n. 20
0
 public GovUkNotifyService(IApplicationLogger applicationLogger, IGovUkNotifyClientProxy clientProxy)
 {
     this.applicationLogger = applicationLogger;
     this.clientProxy       = clientProxy;
 }
 public AzSearchQueryService(ISearchIndexClient indexClient, IAzSearchQueryConverter queryConverter, IApplicationLogger applicationLogger)
 {
     this.indexClient       = indexClient;
     this.queryConverter    = queryConverter;
     this.applicationLogger = applicationLogger;
 }
 public CarDeliveryCreator(IAmqpQueue deliveryQueue, IApplicationLogger logger) : base(deliveryQueue, logger)
 {
 }
 public Cartonizer(IApplicationLogger logger)
 {
     _logger = logger;
 }
 public BedConfigController(IBedConfigApplicationService bedConfigApplicationService, IApplicationLogger applicationLogger, ITextSerializer serializer)
 {
     _bedConfigApplicationService = bedConfigApplicationService;
     _applicationLogger           = applicationLogger;
     _serializer = serializer;
 }
Esempio n. 25
0
 public PaymentsController(IApplicationLogger <PaymentsController> logger, IConfiguration configuration)
 {
     _logger        = logger;
     _configuration = configuration;
 }
 public EngineVersionController(IApplicationLogger applicationLogger, IEngineVersionApplicationService engineVersionApplicationService)
 {
     _applicationLogger = applicationLogger;
     _engineVersionApplicationService = engineVersionApplicationService;
 }
 public WheelBaseController(IWheelBaseApplicationService wheelBaseApplicationService,
                            IApplicationLogger applicationLogger)
 {
     _wheelBaseApplicationService = wheelBaseApplicationService;
     _applicationLogger           = applicationLogger;
 }
Esempio n. 28
0
 public BrakeABSController(IBrakeABSApplicationService brakeABSApplicationService, IApplicationLogger applicationLogger)
 {
     _brakeABSApplicationService = brakeABSApplicationService;
     _applicationLogger          = applicationLogger;
 }
 public static IMealPlanFactory GetFactoryForDietType(string dietType, IApplicationLogger logger)
 => dietType switch
 {
     "keto" => new KetoMealPlanFactory(logger),
 public FuelApplicationExceptionAdapter(IApplicationLogger loger)
 {
     _loger = loger;
 }
Esempio n. 31
0
        /// <summary>
        /// Add exception, format string and additional arguments to log
        /// </summary>
        /// <param name="logger">The application logger</param>
        /// <param name="level">The log level</param>
        /// <param name="exception">The thrown exception</param>
        /// <param name="format">The format string</param>
        /// <param name="args">Additional arguments</param>
        public static void Log(this IApplicationLogger logger, LogLevel level, Exception exception, string format, params object[] args)
        {
            Argument.NotNull(logger, nameof(logger));

            logger.Log(LogEntry(level, exception, format, args));
        }