Exemplo n.º 1
0
 public HttpCreateItemHandler(
     Http.IHttpClientFactory httpClientFactory,
     ILogger <HttpCreateItemHandler <TModel, TOutputDto> > logger)
 {
     this.httpClient = httpClientFactory?.Create() ?? throw new ArgumentNullException(nameof(httpClientFactory));
     this.logger     = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public HttpLazyDataSetItemManipulator(
     Http.IHttpClientFactory httpClientFactory,
     ITypePropertyAccessorCache propertyValueAccessorCache,
     ILogger <HttpLazyDataSetItemManipulator <TItem> > logger)
 {
     this.httpClient = httpClientFactory?.Create() ?? throw new ArgumentNullException(nameof(httpClientFactory));
     this.propertyValueAccessorCache = propertyValueAccessorCache ?? throw new ArgumentNullException(nameof(propertyValueAccessorCache));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public HttpLazyGroupableDataSetLoader(Http.IHttpClientFactory httpClientFactory, ILogger <HttpLazyGroupableDataSetLoader <TItem> > logger)
 {
     this.httpClient = httpClientFactory?.Create() ?? throw new ArgumentNullException(nameof(httpClientFactory));
     this.logger     = logger ?? throw new ArgumentNullException(nameof(logger));
 }