public async Task EndExportSessionV1_ShouldReturn() { using (var httpClient = new HttpClient()) { var requestData = new EndExportSessionRequest(); var content = new StringContent(JsonConvert.SerializeObject(requestData), Encoding.UTF8, "application/json"); var result = await httpClient.PostAsync(new Uri(_url + "/v1/endexportsession"), content); result.EnsureSuccessStatusCode(); } }
public async Task <EndExportSessionResponse> EndExportSessionAsync(EndExportSessionRequest request) => await Task.FromResult(new EndExportSessionResponse());
public async Task <EndExportSessionResponse> EndExportSessionAsync(EndExportSessionRequest request) => await ExecuteHttpPostAsync <EndExportSessionResponse>("v1", "endexportsession", request).ConfigureAwait(false);