public TokenConnectionFactory( string anubisUri, IWebRequestFactory webRequestFactory, IDeserializer<NamedToken> serializer) : this(anubisUri, webRequestFactory, serializer, null) { }
public Server( IHttpListener listener, IEndpointProvider endpointProvider, IOutput output, ISoapDecoder soapDecoder, ILogger logger, IContentTypeProvider contentTypeProvider, IWebRequestFactory webRequestFactory) { this.listener = listener; this.endpointProvider = endpointProvider; this.output = output; this.soapDecoder = soapDecoder; this.logger = logger; this.contentTypeProvider = contentTypeProvider; this.webRequestFactory = webRequestFactory; try { listener.Prefixes.Add(endpointProvider.ServerBaseUrl); } catch (ArgumentException ex) { throw new FailException( string.Format( "While attempting to listen on URL '{1}': {0}", ex.Message, endpointProvider.ServerBaseUrl), ex); } logger.Info("Listening on: {0}", endpointProvider.ServerBaseUrl); }
protected RestWebService(string url, string userName, string password, IWebRequestFactory factory) { Url = url; UserName = userName; _authorization = AuthenticationFromUserNamePassword(userName, password); _webRequestFactory = factory; }
public PaypalController(IOrderService orderService, IWebRequestFactory webRequestFactory, IClock clock) { _orderService = orderService; _webRequestFactory = webRequestFactory; _clock = clock; Logger = NullLogger.Instance; }
private static ScrapeResult Scrape(ILateFlightsScraper scraper, IWebRequestFactory requestFactory, string url) { var webRequest = requestFactory.Create(url.Replace("&", "&")); var response = webRequest.GetResponse(); var scrapeResult = scraper.Scrape(response.GetResponseStream()); return scrapeResult; }
public Api(string baseUrl, string authInfo, IWebRequestFactory webRequestFactory) { if (webRequestFactory == null) throw new ArgumentNullException("webRequestFactory"); WebRequestFactory = webRequestFactory; BaseUrl = baseUrl; ProjectBaseUrl = baseUrl + "/job/"; AuthInfo = authInfo; }
protected BaseWebPackage(IWebControlTemplateBinder controlTemplateBinder , IWebRequestFactory webRequestFactory) { if (webRequestFactory == null) throw new ArgumentNullException(nameof(webRequestFactory)); if (controlTemplateBinder == null) throw new ArgumentNullException(nameof(controlTemplateBinder)); ControlTemplateBinder = controlTemplateBinder; WebRequestFactory = webRequestFactory; }
public TokenConnectionFactory( string anubisUri, IWebRequestFactory webRequestFactory, IDeserializer<NamedToken> serializer, BaseConnectionFactory secureConnectionFactory) { _anubisUri = anubisUri; _webRequestFactory = webRequestFactory; _serializer = serializer; _secureConnectionFactory = secureConnectionFactory; }
public Client( IEndpointProvider endpointProvider, ISoapDecoder soapDecoder, IWebRequestFactory webRequestFactory, ISecurityHeaderFactory securityHeaderFactory, ILogger logger, IContentTypeProvider contentTypeProvider) { this.endpointProvider = endpointProvider; this.soapDecoder = soapDecoder; this.webRequestFactory = webRequestFactory; this.securityHeaderFactory = securityHeaderFactory; this.logger = logger; this.contentTypeProvider = contentTypeProvider; }
public JenkinsServerManager(IWebRequestFactory webRequestFactory, IJenkinsApiFactory apiFactory, IDateTimeService dateTimeService) { if (webRequestFactory == null) throw new ArgumentNullException("webRequestFactory"); if (apiFactory == null) throw new ArgumentNullException("apiFactory"); if (dateTimeService == null) throw new ArgumentNullException("dateTimeService"); _webRequestFactory = webRequestFactory; _apiFactory = apiFactory; _dateTimeService = dateTimeService; }
public DeployerContext(ISimultaneousKeys keys, IProjectSelector projectSelect, ICharDisplay lcd, IIndicators indicatorRefresh, ISound sound, IWebUtility netio, INetwork network, IWebRequestFactory webFactory, IGarbage garbage, IConfigurationService configurationService) { _keys = keys; _projectSelect = projectSelect; _lcd = lcd; _indicatorRefresh = indicatorRefresh; _sound = sound; _netio = netio; _network = network; _webFactory = webFactory; _garbage = garbage; _configurationService = configurationService; }
public static IBuildService Create(BuildServiceProvider which, IWebRequestFactory webFactory, IWebUtility netio, IGarbage garbage) { switch (which) { case BuildServiceProvider.AppVeyor: return new AppVeyorBuildService(webFactory, netio); case BuildServiceProvider.TeamCity: return new TeamCityBuildService(webFactory, netio); case BuildServiceProvider.Failing: return new FailingBuildService(); case BuildServiceProvider.Succeeding: return new SuceedingBuildService(); } throw new Exception("Invalid build service"); }
public GfycatParser(AppSettings settings, IWebRequestFactory webRequestFactory, CancellationToken ct) { this.settings = settings; this.webRequestFactory = webRequestFactory; this.ct = ct; }
/// <summary> /// Initialise a service that can use <see cref="PayrollSuperannuationFund"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public PayrollSuperannuationFundService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
/// <summary> /// Initialise a service that can use <see cref="ServiceQuote"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public ServiceQuoteService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
/// <summary> /// Initialise a service that can use <see cref="ReceiveMoneyTxn"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public ReceiveMoneyTxnService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
protected AbstractTumblrCrawler(IShellService shellService, ICrawlerService crawlerService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IMixtapeParser mixtapeParser, IUguuParser uguuParser, ISafeMoeParser safemoeParser, ILoliSafeParser lolisafeParser, ICatBoxParser catboxParser, IPostQueue <TumblrPost> postQueue, IBlog blog) : base(shellService, crawlerService, ct, pt, progress, webRequestFactory, cookieService, postQueue, blog) { this.tumblrParser = tumblrParser; this.imgurParser = imgurParser; this.gfycatParser = gfycatParser; this.webmshareParser = webmshareParser; this.mixtapeParser = mixtapeParser; this.uguuParser = uguuParser; this.safemoeParser = safemoeParser; this.lolisafeParser = lolisafeParser; this.catboxParser = catboxParser; }
public TestBaseRequestHandler(IWebRequestFactory webRequestFactory) : base(new ApiRequestHelper()) { _webRequestFactory = webRequestFactory; }
/// <summary> /// Initialise a service that can use <see cref="AccountingProperties"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public AccountingPropertiesService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public TestRequest(IWebRequestFactory webRequestFactory, ILogProvider logProvider, ICredentialRepository credentialRepository) : base(webRequestFactory, logProvider, credentialRepository) { }
public TumblrLikedByCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, IPostQueue <TumblrPost> postQueue, IBlog blog) : base(shellService, crawlerService, ct, progress, webRequestFactory, cookieService, postQueue, blog) { this.downloader = downloader; this.pt = pt; }
/// <summary> /// Initialise base instance /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> protected ServiceBase(IApiConfiguration configuration, IWebRequestFactory webRequestFactory, IOAuthKeyService keyService) { Configuration = configuration; WebRequestFactory = webRequestFactory ?? new WebRequestFactory(configuration); _keyService = keyService; }
public IJenkinsApi Create(string url, string authorizationInformation, IWebRequestFactory webRequestFactory) { return(new Api(url, authorizationInformation, webRequestFactory)); }
public ExportedNuGetV3ServiceFeedFactory(IWebRequestFactory webRequestFactory) : base(webRequestFactory) { }
/// <summary> /// Initialise a service that can use <see cref="ItemPriceMatrix"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public ItemPriceMatrixService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public TumblrBlogDetector(IShellService shellService, IWebRequestFactory webRequestFactory) { this.webRequestFactory = webRequestFactory; this.shellService = shellService; }
public JenkinsServerManagerSingletonFactory(IWebRequestFactory webRequestFactory, IJenkinsApiFactory jenkinsApiFactory, IDateTimeService dateTimeService) { _webRequestFactory = webRequestFactory; _jenkinsApiFactory = jenkinsApiFactory; _dateTimeService = dateTimeService; }
/// <summary> /// Initialise a service that can use <see cref="CustomerPayment"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public CustomerPaymentService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
private static IEnumerable<string> ScrapeDepartureAirports(ILateFlightsScraper scraper, IWebRequestFactory requestFactory) { return scraper.ScrapeDepartureAirports(requestFactory.Create("http://flights.thomson.co.uk/en/index.html").GetResponseStream()); }
public GoogleLocationProvider(IWebRequestFactory webRequestFactory) { _webRequest = webRequestFactory; _receivers = new List<IRawMessageReceiver>(); LocationRepository=new LocationRepository(); }
public ThomsonScraper(IWebRequestFactory webRequestFactory, ILateFlightsParser lateFlightsParser, IElasticSearchWriter elasticSearchWriter) { _webRequestFactory = webRequestFactory; _lateFlightsParser = lateFlightsParser; _elasticSearchWriter = elasticSearchWriter; }
public TeamCityBuildService(IWebRequestFactory webFactory, IWebUtility webio) { _webFactory = webFactory; _webio = webio; }
public TwitterRawMessageProvider(IRawMessageReceiver receiver, IWebRequestFactory requestFactory) { _receiver = receiver; _webRequest = requestFactory; }
private Api CreateTestTarget(IWebRequestFactory webRequestFactory) { string baseUrl = String.Empty; string authInfo = String.Empty; var target = new Api(baseUrl, authInfo, webRequestFactory); return target; }
/// <summary> /// Initialise a base instance /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> protected GetOnlyService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public ApplicationUpdateService(IShellService shellService, IWebRequestFactory webRequestFactory) { this.shellService = shellService; this.webRequestFactory = webRequestFactory; }
public OAuthService(IApiConfiguration configuration, IWebRequestFactory factory = null) { _configuration = configuration; _factory = factory ?? new WebRequestFactory(); }
protected BaseRequest(IWebRequestFactory webRequestFactory, ILogProvider logProvider, ICredentialRepository credentialRepository) { _webRequestFactory = webRequestFactory; _log = logProvider.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); _credentialRepository = credentialRepository; }
public TumblrSearchCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, BlockingCollection <TumblrPost> producerConsumerCollection, IBlog blog) : base(shellService, ct, pt, progress, crawlerService, webRequestFactory, cookieService, downloader, producerConsumerCollection, blog) { }
/// <summary> /// Instantiate with OAuth configuration /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="factory">A custom IWebRequestFactory implementation, defaults to WebRequestFactory if not supplied.</param> public OAuthService(IApiConfiguration configuration, IWebRequestFactory factory = null) { _configuration = configuration; this._factory = factory ?? new WebRequestFactory(configuration); }
/// <summary> /// Initialise base instance /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> protected MutablePhotoService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory, IOAuthKeyService keyService) : base(configuration, webRequestFactory, keyService) { }
/// <summary> /// Initialise a service that can use <see cref="Timesheet"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public TimesheetService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public TumblrTagSearchCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IMixtapeParser mixtapeParser, IUguuParser uguuParser, ISafeMoeParser safemoeParser, ILoliSafeParser lolisafeParser, ICatBoxParser catboxParser, IPostQueue <TumblrPost> postQueue, IBlog blog) : base(shellService, crawlerService, pt, progress, webRequestFactory, cookieService, tumblrParser, imgurParser, gfycatParser, webmshareParser, mixtapeParser, uguuParser, safemoeParser, lolisafeParser, catboxParser, postQueue, blog, ct) { this.downloader = downloader; }
/// <summary> /// Initialise base instance /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> protected ReadableRangeService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory, IOAuthKeyService keyService) : base(configuration, webRequestFactory, keyService) { }
public void TestSetup() { _configuration = Substitute.For<IApiConfiguration>(); _webRequestFactory = Substitute.For<IWebRequestFactory>(); _keyService = Substitute.For<IOAuthKeyService>(); }
public TestBaseRequestHandler(IWebRequestFactory webRequestFactory) : base(new ApiRequestHelper()) { _webRequestFactory = webRequestFactory; }
public CompanyFileService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
protected AbstractCrawler(IShellService shellService, ICrawlerService crawlerService, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IPostQueue <TumblrPost> postQueue, IBlog blog, PauseToken pt, CancellationToken ct) { this.shellService = shellService; this.crawlerService = crawlerService; this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; this.postQueue = postQueue; this.blog = blog; this.pt = pt; this.ct = ct; this.progress = progress; }
public RsdService(IWebRequestFactory webRequestFactory) { this.webRequestFactory = webRequestFactory; }
/// <summary> /// Initialise a service that can use <see cref="ProfessionalBill"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public ProfessionalBillService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public TestRequest(IWebRequestFactory webRequestFactory, ILogProvider logProvider, ICredentialRepository credentialRepository) : base(webRequestFactory, logProvider, credentialRepository) { }
public ProxyRequestProcessor(IWebRequestFactory webRequestFactory) { _webRequestFactory = webRequestFactory; }
public static BaseCamp GetInstance(string url, string userName, string password, IWebRequestFactory factory) { return GetInstance(RestWebService.GetInstance(url, userName, password, factory)); }
/// <summary> /// Initialise a service that can use <see cref="MiscellaneousBill"/> resources /// </summary> /// <param name="configuration">The configuration required to communicate with the API service</param> /// <param name="webRequestFactory">A custom implementation of the <see cref="WebRequestFactory"/>, if one is not supplied a default <see cref="WebRequestFactory"/> will be used.</param> /// <param name="keyService">An implementation of a service that will store/persist the OAuth tokens required to communicate with the cloud based API at http://api.myob.com/accountright </param> public MiscellaneousBillService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public TestServiceBase(IApiConfiguration configuration, IWebRequestFactory webRequestFactory, IOAuthKeyService keyService) : base(configuration, webRequestFactory, keyService) { }
public PackageFeedRegistryProvider([Import("NuGet.VisualStudio.IVsPackageSourceProvider")] object provider, IWebRequestFactory webRequestFactory) { _webRequestFactory = webRequestFactory; _provider = provider; }
public static RestWebService GetInstance(string url, string userName, string password, IWebRequestFactory factory) { return new RestWebService(url, userName, password, factory); }
public TestGetOnlyService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }
public HttpRoutingInfoRetreiver(IWebRequestFactory webRequestFactory, string urlExpression, IDeserializer<RoutingInfo> serializer) { _webRequestFactory = webRequestFactory; _urlExpression = urlExpression; _serializer = serializer; }
public CategoryRegisterService(IApiConfiguration configuration, IWebRequestFactory webRequestFactory = null, IOAuthKeyService keyService = null) : base(configuration, webRequestFactory, keyService) { }