Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.83 kb
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Diagnostics;
namespace Com.Dover.IntegrationLib {
public class DoverApiHelper {
internal static string BaseUrl;
public DoverApiHelper(string _userName) {
string baseAddress = String.Empty;
#if DEBUG
baseAddress = "http://api.localdover.com";
#else
baseAddress = "https://api.dovercms.com";
#endif
BaseUrl = String.Format("{0}/{1}", baseAddress, _userName);
}
internal static XDocument MakeRequest(string url) {
var meter = new Stopwatch();
meter.Start();
var document = XDocument.Load(url);
meter.Stop();
Debug.WriteLine("Dover request for " + url + " took " + meter.Elapsed.Seconds + " seconds");
return document;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.