public ChatDumper(IChatClient client, IMessagesRepository repository, IApiRequester apiRequester) { _client = client; _repository = repository; _apiRequester = apiRequester; RefreshIntervalSeconds = 60; _routineTimer = new Timer(RefreshIntervalSeconds * 1000); _routineTimer.Elapsed += RefreshRoutineInternal; }
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); }
protected BaseApiService(IApiRequester apiRequester) : base(apiRequester) { }
public AuthService(IApiRequester apiRequester) : base(apiRequester) { }
public MemberApi(String baseUrl, IApiRequester requester) { this.baseUrl = baseUrl; this.requester = requester; }
public OrdersApi(String Url, IApiRequester apiRequester) { baseUrl = Url; requester = apiRequester; }
public PostSeoSettingsService(IApiRequester apiRequester) : base(apiRequester) { }
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) { }
public PersonsService(IApiRequester apiRequester) : base(apiRequester) { }
protected ApiService(IApiRequester apiRequester) { ApiRequester = apiRequester; }
public ApiControl(ILogger <ApiControl> logger, IApiRequester apiRequester) { _logger = logger; _apiRequester = apiRequester; InitializeComponent(); }
public ChatMessageFactory(IApiRequester requester) { _requester = requester; }
public ProductApi(String urlBase, IApiRequester requester) { this.urlBase = urlBase; this.requester = requester; }
protected PageableBaseApiService(IApiRequester apiRequester) : base(apiRequester) { }
public GroupsService(IApiRequester apiRequester) : base(apiRequester) { }