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
Ejemplo 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));
        }
Ejemplo 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) }
     }));
 }
Ejemplo 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);
        }
Ejemplo n.º 4
0
 protected override ResumableResult getPage()
 {
     return(LRUtils.Harvest(this.BaseUri, this.Action, _Args, this.HttpUsername, this.HttpPassword));
 }
Ejemplo n.º 5
0
 public ListMetadataFormatsHarvestResult ListMetadataFormats()
 {
     return((ListMetadataFormatsHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListMetadataFormats, null));
 }
Ejemplo n.º 6
0
 public ListIdentifiersHarvestResult ListIdentifiers()
 {
     return((ListIdentifiersHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListIdentifiers, null));
 }
Ejemplo n.º 7
0
 public ListRecordsHarvestResult ListRecords()
 {
     return((ListRecordsHarvestResult)LRUtils.Harvest(_baseUri, HarvesterActions.ListRecords, null));
 }