Ejemplo n.º 1
0
 public FacebookApiClient(
     IRestSharpClientFactory clientFactory,
     IFacebookConfiguration facebookConfiguration)
 {
     _clientFactory         = clientFactory;
     _facebookConfiguration = facebookConfiguration;
 }
Ejemplo n.º 2
0
 public GoogleApiClient(
     IRestSharpClientFactory restSharpClientFactory,
     IGoogleConfiguration googleConfiguration,
     IMapper mapper)
 {
     _clientFactory       = restSharpClientFactory;
     _googleConfiguration = googleConfiguration;
     _mapper = mapper;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 public TestsClient(string serviceUrl, IRestSharpClientFactory clientFactory)
 {
     ServiceUrl       = serviceUrl;
     _clientFactory   = clientFactory;
     _restSharpHelper = new RestSharpHelper(RESOURCE_PATH);
 }