Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository"/> class.
 /// </summary>
 /// <param name="integrationProxy">The integration proxy.</param>
 /// <param name="provider">The query provider proxy.</param>
 public Repository(IIntegrationProxy integrationProxy, QueryProvider provider)
 {
     _proxy    = integrationProxy;
     _provider = provider;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository"/> class.
 /// </summary>
 /// <param name="oauthSession">The oauth session.</param>
 public Repository(IOAuthSession oauthSession)
 {
     _proxy    = (new IntegrationProxy(oauthSession));
     _provider = new ApiQueryProvider(_proxy);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository"/> class.
 /// </summary>
 /// <param name="integrationProxy">The integration proxy.</param>
 public Repository(IIntegrationProxy integrationProxy)
 {
     _proxy    = integrationProxy;
     _provider = new ApiQueryProvider(_proxy);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportRepository"/> class.
 /// </summary>
 /// <param name="integrationProxy">The integration proxy.</param>
 /// <param name="queryProvider">The query provider.</param>
 internal ReportRepository(IIntegrationProxy integrationProxy, QueryProvider queryProvider)
 {
     _integrationProxy = integrationProxy;
     _queryProvider    = queryProvider;
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiQueryProvider"/> class.
 /// </summary>
 /// <param name="proxy">The integration proxy to use.</param>
 public ApiQueryProvider(IIntegrationProxy proxy)
 {
     _proxy = proxy;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Repository"/> class.
 /// </summary>
 /// <param name="oauthSession">The oauth session.</param>
 public Repository(IOAuthSession oauthSession, bool is4DP = true)
 {
     _proxy    = (new IntegrationProxy(oauthSession, is4DP));
     _provider = new ApiQueryProvider(_proxy);
 }
Example #7
0
 public ThrottlingIntegrationProxy(IIntegrationProxy innerIntegrationProxy, IRateLimiter rateLimiter)
 {
     _innerIntegrationProxy = innerIntegrationProxy;
     _rateLimiter           = rateLimiter;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AttachmentRepository"/> class.
 /// </summary>
 /// <param name="integrationProxy">The integration proxy.</param>
 internal AttachmentRepository(IIntegrationProxy integrationProxy)
 {
     _integrationProxy = integrationProxy;
 }
Example #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiQueryProvider"/> class.
 /// </summary>
 /// <param name="proxy">The integration proxy to use.</param>
 public ApiQueryProvider(IIntegrationProxy proxy)
 {
     _proxy = proxy;
 }
 public ThrottlingIntegrationProxy(IIntegrationProxy innerIntegrationProxy, IRateLimiter rateLimiter)
 {
     _innerIntegrationProxy = innerIntegrationProxy;
     _rateLimiter = rateLimiter;
 }