public AbstractGetItemTask(HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) { this.httpClient = httpClient; this.credentialsHeadersCryptor = credentialsHeadersCryptor; this.Validate(); }
public AuthenticateTasks(IRestServiceGrammar restGrammar, IWebApiUrlParameters webApiGrammar, SessionConfigUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor cryptor) { this.restGrammar = restGrammar; this.webApiGrammar = webApiGrammar; this.urlBuilder = urlBuilder; this.httpClient = httpClient; this.credentialsCryptor = cryptor; }
public GetMediaContentHashTask( MediaItemUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) { this.httpClient = httpClient; this.urlBuilder = urlBuilder; this.credentialsHeadersCryptor = credentialsHeadersCryptor; }
public DeleteItemTasks( IDeleteItemsUrlBuilder <T> deleteItemsBuilder, HttpClient httpClient, ICredentialsHeadersCryptor cryptor) { this.deleteItemsBuilder = deleteItemsBuilder; this.httpClient = httpClient; this.cryptor = cryptor; this.Validate(); }
public async Task <ScDeleteItemsResponse> DeleteItemAsync(IDeleteItemsByQueryRequest request, CancellationToken cancelToken = default(CancellationToken)) { IDeleteItemsByQueryRequest requestCopy = request.DeepCopyDeleteItemRequest(); using (ICredentialsHeadersCryptor cryptor = await this.GetCredentialsCryptorAsync(cancelToken)) { IDeleteItemsByQueryRequest autocompletedRequest = this.requestMerger.FillDeleteItemByQueryGaps(requestCopy); var urlBuilder = new DeleteItemByQueryUrlBuilder(this.restGrammar, this.webApiGrammar); var taskFlow = new DeleteItemTasks <IDeleteItemsByQueryRequest>(urlBuilder, this.httpClient, cryptor); return(await RestApiCallFlow.LoadRequestFromNetworkFlow(autocompletedRequest, taskFlow, cancelToken)); } }
public async Task <Stream> ReadRenderingHtmlAsync(IGetRenderingHtmlRequest request, CancellationToken cancelToken = default(CancellationToken)) { IGetRenderingHtmlRequest requestCopy = request.DeepCopyGetRenderingHtmlRequest(); using (ICredentialsHeadersCryptor cryptor = await this.GetCredentialsCryptorAsync(cancelToken)) { IGetRenderingHtmlRequest autocompletedRequest = this.requestMerger.FillGetRenderingHtmlGaps(requestCopy); var urlBuilder = new RenderingHtmlUrlBuilder(this.restGrammar, this.webApiGrammar); var taskFlow = new GetRenderingHtmlTasks(urlBuilder, this.httpClient, cryptor); return(await RestApiCallFlow.LoadResourceFromNetworkFlow(autocompletedRequest, taskFlow, cancelToken)); } }
public async Task <ScItemsResponse> UploadMediaResourceAsync(IMediaResourceUploadRequest request, CancellationToken cancelToken = default(CancellationToken)) { IMediaResourceUploadRequest requestCopy = request.DeepCopyUploadMediaRequest(); using (ICredentialsHeadersCryptor cryptor = await this.GetCredentialsCryptorAsync(cancelToken)) { IMediaResourceUploadRequest autocompletedRequest = this.requestMerger.FillUploadMediaGaps(requestCopy); var urlBuilder = new UploadMediaUrlBuilder(this.restGrammar, this.webApiGrammar, this.sessionConfig, this.mediaSettings); var taskFlow = new UploadMediaTask(urlBuilder, this.httpClient, cryptor); return(await RestApiCallFlow.LoadRequestFromNetworkFlow(autocompletedRequest, taskFlow, cancelToken)); } }
public GetItemsByPathTasks(ItemByPathUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) : base(httpClient, credentialsHeadersCryptor) { this.urlBuilder = urlBuilder; }
public AbstractUpdateItemTask(HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) : base(httpClient, credentialsHeadersCryptor) { }
public UpdateItemByIdTask(UpdateItemByIdUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) : base(httpClient, credentialsHeadersCryptor) { this.urlBuilder = urlBuilder; }
public GetRenderingHtmlTasks(RenderingHtmlUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) { this.urlBuilder = urlBuilder; this.httpClient = httpClient; this.credentialsHeadersCryptor = credentialsHeadersCryptor; this.Validate(); }
public UploadMediaTask(UploadMediaUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) : base(httpClient, credentialsHeadersCryptor) { this.urlBuilder = urlBuilder; this.credentialsHeadersCryptor = credentialsHeadersCryptor; this.httpClient = httpClient; }
public GetItemsByQueryTasks(ItemByQueryUrlBuilder urlBuilder, HttpClient httpClient, ICredentialsHeadersCryptor credentialsHeadersCryptor) : base(httpClient, credentialsHeadersCryptor) { this.urlBuilder = urlBuilder; this.Validate(); }