Exemple #1
0
 public ChatDumper(IChatClient client, IMessagesRepository repository, IApiRequester apiRequester)
 {
     _client                = client;
     _repository            = repository;
     _apiRequester          = apiRequester;
     RefreshIntervalSeconds = 60;
     _routineTimer          = new Timer(RefreshIntervalSeconds * 1000);
     _routineTimer.Elapsed += RefreshRoutineInternal;
 }
Exemple #2
0
        private void SetRequester(IApiEndpoint apiEndpoint, IAuthDataRetriever authDataRetriever = null)
        {
            var testCookie = new AuthData
            {
                CookieKey    = CookieName,
                CookieValue  = CookieValue,
                CookiePath   = CookiePath,
                CookieDomain = CookieDomain
            };

            var testCookieRetriever = authDataRetriever ?? new TestAuthDataRetriever(testCookie);

            _requester = new ApiRequester(new ExactUrlServiceUrlBuilder(), testCookieRetriever, new TestApiEndpiontFactory(apiEndpoint));
        }
 public ProcessCommandStockRequestHandler(ILogger <ProcessCommandStockRequestHandler> logger,
                                          ICache <Stock> cacheStock,
                                          IApiRequester apiRequester,
                                          ITextParser textParser,
                                          IMessageQueue messageQueue,
                                          IConfiguration configuration)
 {
     _logger        = logger;
     _cacheStock    = cacheStock;
     _apiRequester  = apiRequester;
     _textParser    = textParser;
     _messageQueue  = messageQueue;
     _configuration = configuration;
     _configuration.GetSection("StockApiConfig").Bind(_stockApiConfig);
 }
Exemple #4
0
 protected BaseApiService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
Exemple #5
0
 public AuthService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
Exemple #6
0
 public MemberApi(String baseUrl, IApiRequester requester)
 {
     this.baseUrl = baseUrl;
     this.requester = requester;
 }
Exemple #7
0
 public OrdersApi(String Url, IApiRequester apiRequester)
 {
     baseUrl = Url;
     requester = apiRequester;
 }
 public PostSeoSettingsService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
Exemple #9
0
 public PostsService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 public CategoriesService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 protected CountableBaseApiService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 public FilesService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 protected CrudPageableWithAliasBaseApiService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 public UsersService(IApiRequester apiRequester)
     : base(apiRequester)
 {
 }
 public DirectionsApi(IApiRequester apiRequester)
 {
     requester = apiRequester;
 }
 public SiteSettingsService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 public ThrottledHandlingApiRequesterWrapper(IApiRequester wrappedRequester)
 {
     _requester = wrappedRequester;
 }
 public DirectoriesService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
 public ProfessorsService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
Exemple #20
0
 public PersonsService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
Exemple #21
0
 protected ApiService(IApiRequester apiRequester)
 {
     ApiRequester = apiRequester;
 }
Exemple #22
0
 public ApiControl(ILogger <ApiControl> logger, IApiRequester apiRequester)
 {
     _logger       = logger;
     _apiRequester = apiRequester;
     InitializeComponent();
 }
Exemple #23
0
 public ChatMessageFactory(IApiRequester requester)
 {
     _requester = requester;
 }
Exemple #24
0
 public ProductApi(String urlBase, IApiRequester requester)
 {
     this.urlBase = urlBase;
     this.requester = requester;
 }
Exemple #25
0
 protected PageableBaseApiService(IApiRequester apiRequester) : base(apiRequester)
 {
 }
Exemple #26
0
 public GroupsService(IApiRequester apiRequester) : base(apiRequester)
 {
 }