Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentGenerationClient"/> class.
 /// </summary>
 /// <param name="httpClient">The HTTP client to use. The caller is expected to manage this resource and it will not be disposed.</param>
 /// <param name="tokenProviderFactory">The Logic access token provider factory.</param>
 /// <param name="options">The required configuration options.</param>
 public DocumentGenerationClient(HttpClient httpClient, LogicTokenProviderFactory tokenProviderFactory, DocumentGenerationOptions options)
     : base(httpClient, tokenProviderFactory, options)
 {
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LogicHttpClientProvider"/> class.
 /// </summary>
 /// <param name="httpClient">The HTTP client to use. The caller is expected to manage this resource and it will not be disposed.</param>
 /// <param name="tokenProviderFactory">The Logic access token provider factory.</param>
 /// <param name="options">The required configuration options.</param>
 protected LogicHttpClientProvider(HttpClient httpClient, LogicTokenProviderFactory tokenProviderFactory, DocumentGenerationOptions options)
 {
     this.HttpClient            = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
     this._options              = options ?? throw new ArgumentNullException(nameof(options));
     this._tokenProviderFactory = tokenProviderFactory ?? throw new ArgumentNullException(nameof(tokenProviderFactory));
 }