Skip to content

Commit aaa478a

Browse files
committed
Revert "Renamed CursorResponse to PostCursorResponse"
This reverts commit ddecb1c. # Conflicts: # arangodb-net-standard/CursorApi/CursorApiClient.cs # arangodb-net-standard/CursorApi/ICursorApiClient.cs
1 parent 62381b9 commit aaa478a

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

arangodb-net-standard.Test/CursorApi/CursorApiClientTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public async Task PutCursorAsync_ShouldThrow_WhenCursorDoesNotExist()
319319
[Fact]
320320
public async Task PutCursorAsync_ShouldReturnResponseModelWithInterface()
321321
{
322-
PostCursorResponse<int> postResponse =
322+
CursorResponse<int> postResponse =
323323
await _cursorApi.PostCursorAsync<int>("FOR i IN 0..1500 RETURN i");
324324

325325
ICursorResponse<int> putResult =

arangodb-net-standard/CursorApi/CursorApiClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected virtual WebHeaderCollection GetHeaderCollection(CursorHeaderProperties
7171
/// <param name="transactionId">Optional. The stream transaction Id.</param>
7272
/// <param name="token">A CancellationToken to observe while waiting for the task to complete or to cancel the task.</param>
7373
/// <returns></returns>
74-
public virtual async Task<PostCursorResponse<T>> PostCursorAsync<T>(
74+
public virtual async Task<CursorResponse<T>> PostCursorAsync<T>(
7575
string query,
7676
Dictionary<string, object> bindVars = null,
7777
PostCursorOptions options = null,
@@ -116,7 +116,7 @@ public virtual async Task<PostCursorResponse<T>> PostCursorAsync<T>(
116116
/// <param name="headerProperties">Optional. Additional Header properties.</param>
117117
/// <param name="token">A CancellationToken to observe while waiting for the task to complete or to cancel the task.</param>
118118
/// <returns></returns>
119-
public virtual async Task<PostCursorResponse<T>> PostCursorAsync<T>(
119+
public virtual async Task<CursorResponse<T>> PostCursorAsync<T>(
120120
PostCursorBody postCursorBody,
121121
CursorHeaderProperties headerProperties = null,
122122
CancellationToken token = default)
@@ -131,7 +131,7 @@ public virtual async Task<PostCursorResponse<T>> PostCursorAsync<T>(
131131
if (response.IsSuccessStatusCode)
132132
{
133133
var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
134-
return DeserializeJsonFromStream<PostCursorResponse<T>>(stream);
134+
return DeserializeJsonFromStream<CursorResponse<T>>(stream);
135135
}
136136

137137
throw await GetApiErrorException(response).ConfigureAwait(false);

arangodb-net-standard/CursorApi/ICursorApiClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface ICursorApiClient
2525
/// <param name="transactionId">Optional. The stream transaction Id.</param>
2626
/// <param name="token">A CancellationToken to observe while waiting for the task to complete or to cancel the task.</param>
2727
/// <returns></returns>
28-
Task<PostCursorResponse<T>> PostCursorAsync<T>(
28+
Task<CursorResponse<T>> PostCursorAsync<T>(
2929
string query,
3030
Dictionary<string, object> bindVars = null,
3131
PostCursorOptions options = null,
@@ -48,7 +48,7 @@ Task<PostCursorResponse<T>> PostCursorAsync<T>(
4848
/// <param name="headerProperties">Optional. Additional Header properties.</param>
4949
/// <param name="token">A CancellationToken to observe while waiting for the task to complete or to cancel the task.</param>
5050
/// <returns></returns>
51-
Task<PostCursorResponse<T>> PostCursorAsync<T>(
51+
Task<CursorResponse<T>> PostCursorAsync<T>(
5252
PostCursorBody postCursorBody,
5353
CursorHeaderProperties headerProperties = null,
5454
CancellationToken token = default);

arangodb-net-standard/CursorApi/Models/PostCursorResponse.cs renamed to arangodb-net-standard/CursorApi/Models/CursorResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace ArangoDBNetStandard.CursorApi.Models
77
/// Response from ArangoDB when creating a new cursor.
88
/// </summary>
99
/// <typeparam name="T"></typeparam>
10-
public class PostCursorResponse<T> : ICursorResponse<T>
10+
public class CursorResponse<T> : ICursorResponse<T>
1111
{
1212
/// <summary>
1313
/// Indicates whether an error occurred
@@ -62,4 +62,4 @@ public class PostCursorResponse<T> : ICursorResponse<T>
6262
/// </summary>
6363
public string Id { get; set; }
6464
}
65-
}
65+
}

0 commit comments

Comments
 (0)