diff --git a/arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs b/arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs index f6a68ed6..6cf1586e 100644 --- a/arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs +++ b/arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs @@ -319,7 +319,7 @@ public async Task PutCursorAsync_ShouldThrow_WhenCursorDoesNotExist() [Fact] public async Task PutCursorAsync_ShouldReturnResponseModelWithInterface() { - PostCursorResponse postResponse = + CursorResponse postResponse = await _cursorApi.PostCursorAsync("FOR i IN 0..1500 RETURN i"); ICursorResponse putResult = diff --git a/arangodb-net-standard/CursorApi/CursorApiClient.cs b/arangodb-net-standard/CursorApi/CursorApiClient.cs index 7906bb6f..02347375 100644 --- a/arangodb-net-standard/CursorApi/CursorApiClient.cs +++ b/arangodb-net-standard/CursorApi/CursorApiClient.cs @@ -71,7 +71,7 @@ protected virtual WebHeaderCollection GetHeaderCollection(CursorHeaderProperties /// Optional. The stream transaction Id. /// A CancellationToken to observe while waiting for the task to complete or to cancel the task. /// - public virtual async Task> PostCursorAsync( + public virtual async Task> PostCursorAsync( string query, Dictionary bindVars = null, PostCursorOptions options = null, @@ -116,7 +116,7 @@ public virtual async Task> PostCursorAsync( /// Optional. Additional Header properties. /// A CancellationToken to observe while waiting for the task to complete or to cancel the task. /// - public virtual async Task> PostCursorAsync( + public virtual async Task> PostCursorAsync( PostCursorBody postCursorBody, CursorHeaderProperties headerProperties = null, CancellationToken token = default) @@ -131,7 +131,7 @@ public virtual async Task> PostCursorAsync( if (response.IsSuccessStatusCode) { var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false); - return DeserializeJsonFromStream>(stream); + return DeserializeJsonFromStream>(stream); } throw await GetApiErrorException(response).ConfigureAwait(false); diff --git a/arangodb-net-standard/CursorApi/ICursorApiClient.cs b/arangodb-net-standard/CursorApi/ICursorApiClient.cs index d350bafb..07f81672 100644 --- a/arangodb-net-standard/CursorApi/ICursorApiClient.cs +++ b/arangodb-net-standard/CursorApi/ICursorApiClient.cs @@ -25,7 +25,7 @@ public interface ICursorApiClient /// Optional. The stream transaction Id. /// A CancellationToken to observe while waiting for the task to complete or to cancel the task. /// - Task> PostCursorAsync( + Task> PostCursorAsync( string query, Dictionary bindVars = null, PostCursorOptions options = null, @@ -48,7 +48,7 @@ Task> PostCursorAsync( /// Optional. Additional Header properties. /// A CancellationToken to observe while waiting for the task to complete or to cancel the task. /// - Task> PostCursorAsync( + Task> PostCursorAsync( PostCursorBody postCursorBody, CursorHeaderProperties headerProperties = null, CancellationToken token = default); diff --git a/arangodb-net-standard/CursorApi/Models/PostCursorResponse.cs b/arangodb-net-standard/CursorApi/Models/CursorResponse.cs similarity index 97% rename from arangodb-net-standard/CursorApi/Models/PostCursorResponse.cs rename to arangodb-net-standard/CursorApi/Models/CursorResponse.cs index d7161861..5b8d6e6a 100644 --- a/arangodb-net-standard/CursorApi/Models/PostCursorResponse.cs +++ b/arangodb-net-standard/CursorApi/Models/CursorResponse.cs @@ -7,7 +7,7 @@ namespace ArangoDBNetStandard.CursorApi.Models /// Response from ArangoDB when creating a new cursor. /// /// - public class PostCursorResponse : ICursorResponse + public class CursorResponse : ICursorResponse { /// /// Indicates whether an error occurred @@ -62,4 +62,4 @@ public class PostCursorResponse : ICursorResponse /// public string Id { get; set; } } -} \ No newline at end of file +}