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