public NetworkManagerIntegrationService(IHttpHandler httpHandler, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { this.httpHandler = httpHandler; this.referenceDataWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(ReferenceDataWebAPIName).ToString() : string.Empty; this.loggingHelper = loggingHelper; }
/// <summary> /// Initializes a new instance of the <see cref="PDFGeneratorBusinessService" /> class /// </summary> /// <param name="pdfGeneratorBusinessService">PDF generator business service</param> /// <param name="configurationHelper">Configuration helper</param> /// <param name="loggingHelper">Logging helper</param> public PDFGeneratorBusinessService(IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { // Validate the arguments if (configurationHelper == null) { throw new ArgumentNullException(nameof(configurationHelper)); } if (loggingHelper == null) { throw new ArgumentNullException(nameof(loggingHelper)); } // Store the injected dependencies this.loggingHelper = loggingHelper; // Retrieve the configuration settings // // PDF report folder path const string PdfReportFolderPathConfigurationKey = "PdfReportFolderPath"; this.pdfReportFolderPath = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(PdfReportFolderPathConfigurationKey).ToString() : string.Empty; if (string.IsNullOrWhiteSpace(this.pdfReportFolderPath)) { throw new System.Exception($"Configuration setting {PdfReportFolderPathConfigurationKey} must not be null or empty."); } // TODO update exception type if (!Directory.Exists(this.pdfReportFolderPath)) { throw new System.Exception($"Configuration setting {PdfReportFolderPathConfigurationKey} must point to a valid directory."); } // TODO update exception type }
public MapIntegrationService(IHttpHandler httpHandler, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { this.httpHandler = httpHandler; this.pdfGeneratorWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(MapManagerConstants.PDFGeneratorWebAPIName).ToString() : string.Empty; this.loggingHelper = loggingHelper; }
/// <summary> /// Initializes a new instance of the <see cref="DeliveryRouteRepository"/> class. /// </summary> /// <param name="databaseFactory">IDatabaseFactory reference</param> public DeliveryRouteDataService(IDatabaseFactory <RouteDBContext> databaseFactory, ILoggingHelper loggingHelper, IConfigurationHelper configurationHelper) : base(databaseFactory) { // Store injected dependencies this.loggingHelper = loggingHelper; this.configurationHelper = configurationHelper; }
/// <summary> /// Constructor for the post controller. /// </summary> /// <param name="commandBus">the command bus</param> /// <param name="emailServices">the service that handles emails</param> /// <param name="loggingHelper">the logging helper</param> public PostController(ICommandBus commandBus, IEmailServices emailServices, IClaimsHelper claimsHelper, ILoggingHelper loggingHelper) { this.commandBus = commandBus; this.emailServices = emailServices; this.claimsHelper = claimsHelper; this.loggingHelper = loggingHelper; }
public ThirdPartyImport(IThirdPartyFileProcessUtility usrLoader, ILoggingHelper loggingHelper, IConfigurationHelper configurationHelper) { this.usrLoader = usrLoader; this.loggingHelper = loggingHelper; this.configurationHelper = configurationHelper; this.ServiceName = configurationHelper.ReadAppSettingsConfigurationValues(BatchServiceName); }
public ThirdPartyAddressLocationIntegrationService(IHttpHandler httpHandler, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { // Store injected dependencies this.httpHandler = httpHandler; this.configurationHelper = configurationHelper; this.loggingHelper = loggingHelper; }
/// <summary> /// Initializes a new instance of the Network Manager Business Service class. /// </summary> /// <param name="streetNetworkDataService">The street network data service</param> /// <param name="networkManagerIntegrationService">The street network data service</param> /// <param name="osRoadLinkDataService">The Ordnance Survey road link data service</param> /// <param name="roadNameDataService">The road name data service</param> /// <param name="loggingHelper">The helper class object for logging</param> public NetworkManagerBusinessService(IStreetNetworkDataService streetNetworkDataService, INetworkManagerIntegrationService networkManagerIntegrationService, IOSRoadLinkDataService osRoadLinkDataService, IRoadNameDataService roadNameDataService, ILoggingHelper loggingHelper) { this.streetNetworkDataService = streetNetworkDataService; this.networkManagerIntegrationService = networkManagerIntegrationService; this.osRoadLinkDataService = osRoadLinkDataService; this.roadNameDataService = roadNameDataService; this.loggingHelper = loggingHelper; }
public MSTestTestsInstrumentor(CancelableArtefactAdapter <string, IList <CSharpAssembly> > assembliesAdapter, ILoggingHelper loggingHelper, ISettingsProvider settingsProvider) { this.assembliesAdapter = assembliesAdapter; this.loggingHelper = loggingHelper; this.settingsProvider = settingsProvider; }
public MapBusinessService(IMapIntegrationService mapIntegrationService, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { this.mapIntegrationService = mapIntegrationService; this.xsltFilepath = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(MapManagerConstants.XSLTFilePath).ToString() : string.Empty; this.imagePath = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(MapManagerConstants.ImagePath).ToString() : string.Empty; this.loggingHelper = loggingHelper; }
/// <summary> /// Initializes a new instance of the <see cref="DeliveryRouteBusinessService" /> class and other classes. /// </summary> /// <param name="deliveryRouteDataService">IDeliveryRouteRepository reference</param> /// <param name="scenarioDataService">IScenarioRepository reference</param> /// <param name="referenceDataBusinessService">The reference data business service.</param> public DeliveryRouteBusinessService(IDeliveryRouteDataService deliveryRouteDataService, IDeliveryRouteIntegrationService deliveryRouteIntegrationService, ILoggingHelper loggingHelper, IBlockSequenceDataService blockSequenceDataService, IPostcodeDataService postCodeDataService) { // Store injected dependencies this.deliveryRouteDataService = deliveryRouteDataService; this.deliveryRouteIntegrationService = deliveryRouteIntegrationService; this.loggingHelper = loggingHelper; this.blockSequenceDataService = blockSequenceDataService; this.postCodeDataService = postCodeDataService; }
/// <summary> /// Initializes a new instance of the <see cref="DeliveryPointGroupBusinessService"/> class. /// </summary> public DeliveryPointGroupBusinessService( IDeliveryPointGroupDataService deliveryPointGroupDataService, ILoggingHelper loggingHelper, IDeliveryPointGroupIntegrationService deliveryPointGroupIntegrationService) { this.deliveryPointGroupDataService = deliveryPointGroupDataService; this.loggingHelper = loggingHelper; this.deliveryPointGroupIntegrationService = deliveryPointGroupIntegrationService; }
public NYBImport(INYBFileProcessUtility nybLoader, ILoggingHelper loggingHelper, IConfigurationHelper configurationHelper) { this.nybLoader = nybLoader; this.loggingHelper = loggingHelper; this.configurationHelper = configurationHelper; this.ServiceName = configurationHelper.ReadAppSettingsConfigurationValues(NYBLoaderConstants.BatchServiceName); this.strProcessedFilePath = configurationHelper.ReadAppSettingsConfigurationValues(NYBLoaderConstants.ProcessedFilePath); this.strErrorFilePath = configurationHelper.ReadAppSettingsConfigurationValues(NYBLoaderConstants.ErrorFilePath); }
public UnitManagerIntegrationService(IHttpHandler httpHandler, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { // Store injected dependencies this.httpHandler = httpHandler; this.configurationHelper = configurationHelper; this.loggingHelper = loggingHelper; this.referenceDataWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(ReferenceDataWebAPIName).ToString() : string.Empty; this.routeDataWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(RouteDataWebAPIName).ToString() : string.Empty; }
public ThirdPartyAddressLocationBusinessService( IAddressLocationDataService addressLocationDataService, IThirdPartyAddressLocationIntegrationService thirdPartyAddressLocationIntegrationService, ILoggingHelper loggingHelper) { // Store injected dependencies this.addressLocationDataService = addressLocationDataService; this.thirdPartyAddressLocationIntegrationService = thirdPartyAddressLocationIntegrationService; this.loggingHelper = loggingHelper; }
public PAFImport(IPAFFileProcessUtility pafLoader, ILoggingHelper loggingHelper, IConfigurationHelper configurationHelper) { this.pafLoader = pafLoader; this.loggingHelper = loggingHelper; this.configurationHelper = configurationHelper; this.ServiceName = configurationHelper.ReadAppSettingsConfigurationValues(BatchServiceName); this.processed = configurationHelper.ReadAppSettingsConfigurationValues(PAFProcessedFilePath); this.error = configurationHelper.ReadAppSettingsConfigurationValues(PAFErrorFilePath); }
/// <summary> /// The main entry point for the application. /// </summary> private static void Main() { IKernel kernel = new StandardKernel(new StartUp()); IConfigurationHelper configurationHelper = kernel.Get <IConfigurationHelper>(); ILoggingHelper loggingHelper = kernel.Get <ILoggingHelper>(); INYBFileProcessUtility nybLoader = kernel.Get <INYBFileProcessUtility>(); ServiceBase[] servicesToRun = new ServiceBase[] { new NYBImport(nybLoader, loggingHelper, configurationHelper) }; ServiceBase.Run(servicesToRun); }
// ReSharper disable once NotNullMemberIsNotInitialized // Plugin instance is created at the Discovery phase and Configuration is loaded afterwards private Plugin( IManifestHelper manifest, ILoggingHelper logging, PluginReference reference ) { Manifest = manifest; Logging = logging; Reference = reference; }
static void Main(string[] args) { IKernel kernel = new StandardKernel(new StartUp()); IHttpHandler httpHandler = kernel.Get <IHttpHandler>(); IConfigurationHelper configurationHelper = kernel.Get <IConfigurationHelper>(); ILoggingHelper loggingHelper = kernel.Get <ILoggingHelper>(); DataBatchDelete batchDelete = new DataBatchDelete(httpHandler, configurationHelper, loggingHelper); batchDelete.BatchDelete(); }
// ReSharper disable once NotNullMemberIsNotInitialized // Plugin instance is created at the Discovery phase and Configuration is loaded afterwards private Plugin( [NotNull] IManifestHelper manifest, [NotNull] ILoggingHelper logging, [NotNull] PluginReference reference ) { Manifest = manifest; Logging = logging; Reference = reference; }
/// <summary> /// Constructor for the receiver class. /// </summary> public ThirdPartyAddressLocationReceiver(IMessageBroker <AddressLocationUSRDTO> msgUSR, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper, IHttpHandler httpHandler) { this.msgUSR = msgUSR; this.configurationHelper = configurationHelper; this.loggingHelper = loggingHelper; this.httpHandler = httpHandler; this.USRWebApiName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(USRWEBAPINAME).ToString() : string.Empty; this.ServiceName = configurationHelper.ReadAppSettingsConfigurationValues(BatchServiceName); }
/// <summary> /// Initializes a new instance of the <see cref="UnitLocationBusinessService"/> class. /// </summary> /// <param name="unitLocationDataService"> The unit location respository</param> /// <param name="postcodeSectorDataService">post code sector data service</param> /// <param name="postCodeDataService">post code data service</param> /// <param name="scenarioDataService">scenario data service</param> public UnitLocationBusinessService(IUnitLocationDataService unitLocationDataService, IPostcodeSectorDataService postcodeSectorDataService, IPostcodeDataService postCodeDataService, IScenarioDataService scenarioDataService, IPostalAddressDataService postalAddressDataService, ILoggingHelper loggingHelper, IUnitManagerIntegrationService unitManagerIntegrationService) { // Store injected dependencies this.unitLocationDataService = unitLocationDataService; this.postcodeSectorDataService = postcodeSectorDataService; this.postCodeDataService = postCodeDataService; this.scenarioDataService = scenarioDataService; this.loggingHelper = loggingHelper; this.unitManagerIntegrationService = unitManagerIntegrationService; this.postalAddressDataService = postalAddressDataService; }
public DeliveryRouteIntegrationService(IHttpHandler httpHandler, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { this.httpHandler = httpHandler; this.deliveryRouteWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(DeliveryRouteConstants.DeliveryRouteManagerWebAPIName).ToString() : string.Empty; this.referenceDataWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(DeliveryRouteConstants.ReferenceDataWebAPIName).ToString() : string.Empty; this.unitManagerDataWebAPIName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(DeliveryRouteConstants.UnitManagerDataWebAPIName).ToString() : string.Empty; this.loggingHelper = loggingHelper; }
public TestExecutorWithInstrumenting(ITestExecutor <TTestCase, TProgramDelta, TProgram> executor, ITestsInstrumentor <TProgram, TTestCase> instrumentor, CorrespondenceModelManager <TProgram> correspondenceModelManager, IApplicationClosedHandler applicationClosedHandler, ILoggingHelper loggingHelper) { this.executor = executor; this.instrumentor = instrumentor; this.correspondenceModelManager = correspondenceModelManager; this.applicationClosedHandler = applicationClosedHandler; this.loggingHelper = loggingHelper; }
// private int count = 0; #endregion private member declaration #region Constructor /// <summary> /// Constructor for the receiver class. /// </summary> public PAFReceiver(IMessageBroker <PostalAddressDTO> msgPAF, IHttpHandler httpHandler, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { this.msgPAF = msgPAF; this.configurationHelper = configurationHelper; this.loggingHelper = loggingHelper; this.httpHandler = httpHandler; this.PAFWebApiName = configurationHelper != null?configurationHelper.ReadAppSettingsConfigurationValues(PAFWEBAPINAME).ToString() : string.Empty; this.ServiceName = configurationHelper.ReadAppSettingsConfigurationValues(BatchServiceName); this.timerIntervalInSeconds = configurationHelper != null?Convert.ToDouble(configurationHelper.ReadAppSettingsConfigurationValues(TimerIntervalInSeconds)) : default(double); }
public ErrorHandlingMiddleware( RequestDelegate next, ILoggingHelper loggingHelper, IExceptionHelper exceptionHelper, IOptions <ResponseExceptionHandlerOptions> options) { this.next = next; this.exceptionHelper = exceptionHelper; this.loggingHelper = loggingHelper; this.options = options.Value; this.clearCacheHeadersDelegate = this.ClearCacheHeaders; }
public PAFFileProcessUtility(IMessageBroker <PostalAddressDTO> messageBroker, IConfigurationHelper configurationHelper, ILoggingHelper loggingHelper) { this.msgBroker = messageBroker; this.configurationHelper = configurationHelper; this.loggingHelper = loggingHelper; this.strPAFProcessedFilePath = configurationHelper.ReadAppSettingsConfigurationValues(PAFLoaderConstants.PAFProcessedFilePath); this.strPAFErrorFilePath = configurationHelper.ReadAppSettingsConfigurationValues(PAFLoaderConstants.PAFErrorFilePath); noOfCharactersForPAF = configurationHelper != null?Convert.ToInt32(configurationHelper.ReadAppSettingsConfigurationValues(PAFLoaderConstants.NoOfCharactersForPAF)) : default(int); maxCharactersForPAF = configurationHelper != null?Convert.ToInt32(configurationHelper.ReadAppSettingsConfigurationValues(PAFLoaderConstants.MaxCharactersForPAF)) : default(int); csvPAFValues = configurationHelper != null?Convert.ToInt32(configurationHelper.ReadAppSettingsConfigurationValues(PAFLoaderConstants.CsvPAFValues)) : default(int); }
public OfflineController( IArtefactAdapter <TArtefact, TModel> artefactAdapter, ModelBasedController <TModel, TProgramDelta, TTestCase, TResult> modelBasedController, ILoggingHelper loggingHelper, IArtefactAdapter <TResultArtefact, TResult> resultArtefactAdapter, Lazy <IArtefactAdapter <TVisualizationArtefact, VisualizationData> > visualizationArtefactAdapter) { this.artefactAdapter = artefactAdapter; this.modelBasedController = modelBasedController; this.loggingHelper = loggingHelper; this.resultArtefactAdapter = resultArtefactAdapter; this.visualizationArtefactAdapter = visualizationArtefactAdapter; }
public ThirdPartyFileProcessUtility(IMessageBroker <AddressLocationUSRDTO> messageBroker, IFileMover fileMover, IExceptionHelper exceptionHelper, ILoggingHelper loggingHelper, IConfigurationHelper configHelper) { this.msgBroker = messageBroker; this.fileMover = fileMover; this.loggingHelper = loggingHelper; this.configHelper = configHelper; this.xsdLocation = configHelper.ReadAppSettingsConfigurationValues(ThirdPartyLoaderConstants.XSDLOCATIONCONFIG); this.processed = configHelper.ReadAppSettingsConfigurationValues(ThirdPartyLoaderConstants.USRPROCESSEDFILEPATHCONFIG); this.error = configHelper.ReadAppSettingsConfigurationValues(ThirdPartyLoaderConstants.USRERRORFILEPATHCONFIG); }
public DeliveryPointGroupController(IDeliveryPointGroupBusinessService deliveryPointGroupBusinessService, ILoggingHelper loggingHelper) { // Validate the arguments if (deliveryPointGroupBusinessService == null) { throw new ArgumentNullException(nameof(deliveryPointGroupBusinessService)); } if (loggingHelper == null) { throw new ArgumentNullException(nameof(loggingHelper)); } this.deliveryPointGroupBusinessService = deliveryPointGroupBusinessService; this.loggingHelper = loggingHelper; }
public UserRepository(IDbContext context, ILoggingHelper loggingHelper) { _context = context; _loggingHelper = loggingHelper; }