public GetDocumentsCommand CreateRequest() { if (_idsToCheckOnServer.Count == 0) { return(null); } if (_session.CheckIfIdAlreadyIncluded(_ids, _includes)) { return(null); } _session.IncrementRequestCount(); if (Logger.IsInfoEnabled) { Logger.Info($"Requesting the following ids '{string.Join(", ", _idsToCheckOnServer)}' from {_session.StoreIdentifier}"); } if (_includeAllCounters) { return(new GetDocumentsCommand(_idsToCheckOnServer.ToArray(), _includes, includeAllCounters: true, metadataOnly: false)); } return(_countersToInclude != null ? new GetDocumentsCommand(_idsToCheckOnServer.ToArray(), _includes, _countersToInclude, metadataOnly: false) : new GetDocumentsCommand(_idsToCheckOnServer.ToArray(), _includes, metadataOnly: false)); }
public GetDocumentsCommand CreateRequest() { if (_session.CheckIfIdAlreadyIncluded(_ids, _includes)) { return(null); } _session.IncrementRequestCount(); if (Logger.IsInfoEnabled) { Logger.Info($"Requesting the following ids '{string.Join(", ", _ids)}' from {_session.StoreIdentifier}"); } if (_includeAllCounters) { return(new GetDocumentsCommand(_ids, _includes, includeAllCounters: true, timeSeriesIncludes: _timeSeriesToInclude, compareExchangeValueIncludes: _compareExchangeValuesToInclude, metadataOnly: false)); } return(new GetDocumentsCommand(_ids, _includes, _countersToInclude, _timeSeriesToInclude, _compareExchangeValuesToInclude, metadataOnly: false)); }
public GetDocumentCommand CreateRequest() { if (_idsToCheckOnServer.Count == 0) { return(null); } if (_session.CheckIfIdAlreadyIncluded(_ids, _includes)) { return(null); } _session.IncrementRequestCount(); if (_logger.IsInfoEnabled) { _logger.Info($"Requesting the following ids '{string.Join(", ", _idsToCheckOnServer)}' from {_session.StoreIdentifier}"); } return(new GetDocumentCommand { Ids = _idsToCheckOnServer.ToArray(), Includes = _includes, Context = _session.Context }); }