public GetRequest CreateRequest(JsonOperationContext ctx) { GetRevisionsCommand getRevisionsCommand = _getRevisionOperation.CreateRequest(); var sb = new StringBuilder("?"); getRevisionsCommand.GetRequestQueryString(sb); return(new GetRequest { Method = HttpMethod.Get, Url = "/revisions", Query = sb.ToString() }); }
public async Task <DynamicArray> GetRevisionsForAsync(string id, int?start = null, int?pageSize = null, bool metadataOnly = false) { if (id == null) { throw new ArgumentNullException(nameof(id)); } var command = new GetRevisionsCommand(id, start, pageSize, metadataOnly); await RequestExecutor.ExecuteAsync(command, Context); return(new DynamicArray(command.Result.Results)); }
public GetRevisionOperation(InMemoryDocumentSessionOperations session, IEnumerable <string> changeVectors) { _session = session ?? throw new ArgumentNullException(nameof(session)); _command = new GetRevisionsCommand(changeVectors.ToArray()); }
public GetRevisionOperation(InMemoryDocumentSessionOperations session, string changeVector) { _session = session ?? throw new ArgumentNullException(nameof(session)); _command = new GetRevisionsCommand(changeVector); }
public GetRevisionOperation(InMemoryDocumentSessionOperations session, string id, DateTime before) { _session = session ?? throw new ArgumentNullException(nameof(session)); _command = new GetRevisionsCommand(id, before); }
public GetRevisionOperation(InMemoryDocumentSessionOperations session, string id, int?start, int?pageSize, bool metadataOnly = false) { _session = session ?? throw new ArgumentNullException(nameof(session)); _command = new GetRevisionsCommand(id, start, pageSize, metadataOnly); }
public GetRevisionsResultCommand(string id, int?start, int?pageSize, ISerializationConventions serialization) { _serialization = serialization; _cmd = new GetRevisionsCommand(id, start, pageSize); }