コード例 #1
0
 /// <summary>
 /// Historic Data Deletion Processor
 /// </summary>
 /// <param name="reportDataService">Report Data Service</param>
 /// <param name="clientTokenHandler">GCP Client Token Hanlder</param>
 /// <param name="documentDeletionProcessor">Document Deletion Processor</param>
 /// <param name="logger">Event Logger</param>
 public HistoricDataDeletionProcessor(IReportDataService reportDataService, IClientTokenHandler clientTokenHandler, IDocumentDeletionProcessor documentDeletionProcessor, ILogger <HistoricDataDeletionProcessor> logger)
 {
     _reportDataService         = reportDataService;
     _clientTokenHandler        = clientTokenHandler;
     _documentDeletionProcessor = documentDeletionProcessor;
     _logger = logger;
 }
コード例 #2
0
 /// <summary>
 /// Creates new instance of Notification Service
 /// </summary>
 /// <param name="reportDataService">Report Data Service</param>
 /// <param name="messagePublisher">Service Bus Message Publisher</param>
 /// <param name="secondaryReportNotificationTopic">Topic Name</param>
 /// <param name="logger">Event Logger</param>
 public NotificationService(IReportDataService reportDataService, IMessagePublisher messagePublisher, string secondaryReportNotificationTopic, ILogger <NotificationService> logger)
 {
     _reportDataService = reportDataService;
     _messagePublisher  = messagePublisher;
     _secondaryReportNotificationTopic = secondaryReportNotificationTopic;
     _logger = logger;
 }
コード例 #3
0
 public ReportController(
     IMapper mapper,
     IReportDataService reportDataService)
 {
     _mapper            = mapper;
     _reportDataService = reportDataService;
 }
コード例 #4
0
 public ReportService(IReportDataService dataService, IUserService userService, ITransactionService transactionService,
                      ISupplyService supplyService)
 {
     this._dataService        = dataService;
     this._userService        = userService;
     this._transactionService = transactionService;
     this._supplyService      = supplyService;
 }
コード例 #5
0
 /// <summary>
 /// Raw Input Sheet Controller
 /// </summary>
 /// <param name="reportDataService">Report Data Service</param>
 /// <param name="clientTokenHandler">Auth0 Token Service</param>
 /// <param name="documentSettings">Document Settings</param>
 /// <param name="serviceProvider">Service Provider</param>
 /// <param name="logger">Event Logger</param>
 public RawDocumentController(IReportDataService reportDataService,
                              IClientTokenHandler clientTokenHandler,
                              IDocumentStoreSettings documentSettings,
                              IServiceProvider serviceProvider,
                              ILogger <RawDocumentController> logger)
     : base(serviceProvider, clientTokenHandler, documentSettings)
 {
     _reportDataService  = reportDataService;
     _clientTokenHandler = clientTokenHandler;
     _documentSettings   = documentSettings;
     _logger             = logger;
 }
コード例 #6
0
 /// <summary>
 /// Constructor ProcessedDocumentController
 /// </summary>
 /// <param name="reportDataService">Report Data Service</param>
 /// <param name="clientTokenHandler">Auth0 Token Service</param>
 /// <param name="documentSettings">Document Settings</param>
 /// <param name="serviceProvider">Service Provider</param>
 /// <param name="notificationService">Service Notification</param>
 /// <param name="logger">Event Logger</param>
 public ProcessedDocumentController(IReportDataService reportDataService,
                                    IClientTokenHandler clientTokenHandler,
                                    IDocumentStoreSettings documentSettings,
                                    IServiceProvider serviceProvider,
                                    INotificationService notificationService,
                                    ILogger <ProcessedDocumentController> logger)
     : base(serviceProvider, clientTokenHandler, documentSettings)
 {
     _reportDataService   = reportDataService;
     _clientTokenHandler  = clientTokenHandler;
     _documentSettings    = documentSettings;
     _notificationService = notificationService;
     _logger = logger;
 }
コード例 #7
0
        /// <summary>
        /// Admin Controller
        /// </summary>
        /// <param name="reportDataService">Report Data Service</param>
        /// <param name="documentDeletionProcessor">Document Deletion Service</param>
        /// <param name="documentUpsertProcessor">Document Upsert Processor</param>
        /// <param name="clientTokenHandler">GCP Token Handler</param>
        /// <param name="historicDocumentProcessor">Historic Document Processor</param>
        /// <param name="messagePublisher">Message Publisher</param>
        /// <param name="configuration">Configuration</param>
        /// <param name="logger">Event Logger</param>
        public AdminController(IReportDataService reportDataService,
                               IDocumentDeletionProcessor documentDeletionProcessor,
                               IDocumentUpsertProcessor documentUpsertProcessor,
                               IClientTokenHandler clientTokenHandler,
                               IHistoricDataDeletionProcessor historicDocumentProcessor,
                               IMessagePublisher messagePublisher,
                               IConfiguration configuration,
                               ILogger <AdminController> logger)
        {
            _reportDataService         = reportDataService;
            _documentDeletionProcessor = documentDeletionProcessor;
            _documentUpsertProcessor   = documentUpsertProcessor;
            _clientTokenHandler        = clientTokenHandler;
            _historicDocumentProcessor = historicDocumentProcessor;

            // var services = serviceProvider.GetServices<IMessagePublisher>();
            // _messagePublisher = services.First(s => s.GetType() == typeof(MessagePublisher) && !s.IsGCPVersion);
            // _messagePublisherGCP = services.First(s => s.GetType() == typeof(MessagePublisher) && s.IsGCPVersion);
            _messagePublisher = messagePublisher;
            _configuration    = configuration;
            _logger           = logger;

            _gcpAserviceAPI = configuration.GetValue <string>("GcpAudience");
        }
コード例 #8
0
 public ReportService(IReportDataService reportDataService)
 {
     _reportDataService = reportDataService;
 }
コード例 #9
0
 public ReportDataRepository(string jobNumber, IReportDataService reportDataService)
 {
     _jobNumber         = jobNumber;
     _reportDataService = reportDataService;
 }
コード例 #10
0
 public ReportService(IReportDataService reportDataService, ICacheService cacheService)
 {
     _reportDataService = reportDataService;
     _cache = cacheService;
 }
コード例 #11
0
 public ReportController(IReportDataService reportDataService)
 {
     _reportDataService = reportDataService;
 }
コード例 #12
0
 public ReportService(IReportDataService reportDataService, ICacheWrapper cacheWrapper)
 {
     _reportDataService = reportDataService;
     _cacheWrapper = cacheWrapper;
 }
コード例 #13
0
 public ReportController(IReportDataService reportDataService, IUserOrientedDataService userOrientedDataService)
 {
     _reportDataService       = reportDataService;
     _userOrientedDataService = userOrientedDataService;
 }
コード例 #14
0
 public Repor()
 {
     competitorRepo = IoC.Resolve <ICompetitorRepo>();
     rds            = IoC.Resolve <IReportDataService>();
 }
コード例 #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsController" /> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="reportDataService">The report data service.</param>
 public ReportsController(ILoggerService loggerService, IReportDataService reportDataService)
     : base(loggerService)
 {
     this.reportDataService = reportDataService;
 }
コード例 #16
0
 public TextFileReportExporter(IReportDataService reportDataService)
 {
     _reportDataService = reportDataService;
 }
コード例 #17
0
ファイル: Repor.aspx.cs プロジェクト: rodrigogalhardo/asms-md
 public Repor()
 {
     competitorRepo = IoC.Resolve<ICompetitorRepo>();
     rds = IoC.Resolve<IReportDataService>();
 }