Harvest() static private method

static private Harvest ( Uri baseUri, string action, object>.Dictionary args, string username = "", string password = "" ) : HarvestResult
baseUri System.Uri
action string
args object>.Dictionary
username string
password string
return HarvestResult
Esempio n. 1
0
        private HarvestResult harvestFromDateRange(string action, DateTime fromDate, DateTime untilDate)
        {
            var args = new Dictionary <string, object>();

            args["from"]  = fromDate.ToString(LRUtils.ISO_8061_FORMAT);
            args["until"] = untilDate.ToString(LRUtils.ISO_8061_FORMAT);
            return(LRUtils.Harvest(_baseUri, action, args));
        }
Esempio n. 2
0
 private HarvestResult harvestFromDateBoundary(string action, string boundaryType, DateTime date)
 {
     return(LRUtils.Harvest(_baseUri, action,
                            new Dictionary <string, object>()
     {
         { boundaryType, date.ToString(LRUtils.ISO_8061_FORMAT) }
     }));
 }
Esempio n. 3
0
        private GetRecordHarvestResult getRecord(string requestId, bool byDocId = false)
        {
            Console.WriteLine(_baseUri.AbsoluteUri);
            var args = new Dictionary <string, object>();

            args["request_ID"] = requestId;
            if (byDocId)
            {
                args["by_doc_ID"] = true.ToString();
            }

            var result = (GetRecordHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.GetRecord, args);

            return(result);
        }
Esempio n. 4
0
 protected override ResumableResult getPage()
 {
     return(LRUtils.Harvest(this.BaseUri, this.Action, _Args, this.HttpUsername, this.HttpPassword));
 }
Esempio n. 5
0
 public ListMetadataFormatsHarvestResult ListMetadataFormats()
 {
     return((ListMetadataFormatsHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListMetadataFormats, null));
 }
Esempio n. 6
0
 public ListIdentifiersHarvestResult ListIdentifiers()
 {
     return((ListIdentifiersHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListIdentifiers, null));
 }
Esempio n. 7
0
 public ListRecordsHarvestResult ListRecords()
 {
     return((ListRecordsHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListRecords, null));
 }