Example #1
0
 public ShowsController(IMapper mapper, IShowsService showService, IStringsProvider strings, ILogger <ShowsController> logger)
 {
     _mapper      = mapper;
     _showService = showService;
     _strings     = strings;
     _logger      = logger;
 }
 public static Task Run(
     [ActivityTrigger] IEnumerable <int> showIds,
     [Inject(typeof(IShowsService))] IShowsService showsService,
     ILogger logger)
 {
     logger.LogInformation("Deleting shows");
     return(showsService.DeleteShowsAsync(showIds));
 }
Example #3
0
        public TvShowScraperService(IRestSharpClientFactory clientFactory, IOptions <TvMazeAPIOptions> tvMazeAPIOptions,
                                    IShowsService showsService, ILogger <TvShowScraperService> logger) : base(logger)
        {
            _clientFactory    = clientFactory;
            _tvMazeAPIOptions = tvMazeAPIOptions.Value;
            _showsService     = showsService;

            DelayTimeSpan = TimeSpan.FromDays(1d);
        }
        public static Task Run(
            [ActivityTrigger] IEnumerable<ShowWithCast> page,
            [Inject(typeof(IShowsService))] IShowsService pageSaverService,
            ILogger logger)
        {
            logger.LogInformation($"Inserting page");

            return pageSaverService.InsertPageAsync(page);
        }
 public ShowsImportService(
     ILogger <ShowsImportService> logger,
     IStringsProvider strings,
     IMicroservicesCommunicationService communicationService,
     IShowsService showsService)
 {
     _logger  = logger;
     _strings = strings;
     _communicationService = communicationService;
     _showsService         = showsService;
 }
Example #6
0
 public IndexModel(
     IShowsService showsService,
     ILiveShowDetailsService liveShowDetails,
     IOptions <AppSettings> appSettings,
     IObjectMapper mapper)
 {
     _showsService    = showsService;
     _liveShowDetails = liveShowDetails;
     _appSettings     = appSettings.Value;
     _mapper          = mapper;
 }
 public ShowsController(
     IShowsService showsService,
     IPageParametersValidator pageParametersValidator,
     IMapper mapper,
     PagingStringResources pageStringResources,
     IUrlHelper urlHelper)
 {
     this.showsService            = showsService ?? throw new ArgumentNullException(nameof(showsService));
     this.pageParametersValidator = pageParametersValidator ?? throw new ArgumentNullException(nameof(pageParametersValidator));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
     this.pageStringResources = pageStringResources ?? throw new ArgumentNullException(nameof(pageStringResources));
     this.urlHelper           = urlHelper ?? throw new ArgumentNullException(nameof(urlHelper));
 }
Example #8
0
 public TvMazeScraper(IShowsService showsService) => ShowsService = showsService;
Example #9
0
 public HomeController(IShowsService showsService, ILiveShowDetailsService liveShowDetails, IObjectMapper mapper)
 {
     _showsService    = showsService;
     _liveShowDetails = liveShowDetails;
     _mapper          = mapper;
 }
Example #10
0
 public RetrieveShows(IShowsService showsService)
 {
     _showsService = showsService;
 }
Example #11
0
 public ShowsController(IShowsService showsService,
                        IMapper mapper)
 {
     _showsService = showsService;
     _mapper       = mapper;
 }
 public ShowController(IShowsService service)
 {
     _service = service;
 }
Example #13
0
 public IndexModel(IShowsService showsService, ILiveShowDetailsService liveShowDetails, IObjectMapper mapper)
 {
     _showsService    = showsService;
     _liveShowDetails = liveShowDetails;
     _mapper          = mapper;
 }
Example #14
0
 public HomeController(IShowsService showsService, ILiveShowDetailsService liveShowDetails)
 {
     _showsService    = showsService;
     _liveShowDetails = liveShowDetails;
 }
Example #15
0
 public List(IShowsService showsService)
 {
     this.showsService = showsService;
 }
Example #16
0
 public ShowsController(IShowsService showsService, IShowTimesService showTimesService)
 {
     _showsService     = showsService;
     _showTimesService = showTimesService;
 }
Example #17
0
 public ShowController(IShowsService showsService)
 {
     db = showsService;
 }
Example #18
0
 public ShowsController(IShowsService showsService)
 {
     _showsService = showsService ?? throw new ArgumentNullException(nameof(showsService));
 }
        private void InitializeProxy()
        {
            _showsProxy = new ChannelFactory<IShowsService>("ShowEP").CreateChannel();

            InitializeTicketingProxy(false);
        }
Example #20
0
 public ShowsController(IShowsService showsService, IMapper mapper)
 {
     _showsService = showsService ?? throw new ArgumentNullException(nameof(showsService));
     _mapper       = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Example #21
0
 public ShowsController(IShowsService showsService) => ShowsService = showsService;
 public ShowsController(IShowsService showsService, ILogger <ShowsController> logger)
 {
     _showsService = showsService;
     _logger       = logger;
 }