Example #1
0
 public bool Equals(BusinessKey other)
 {
     if (other == null)
     {
         return(false);
     }
     return(ClientId.Equals(other.ClientId) && SigningKey.Equals(other.SigningKey));
 }
Example #2
0
        private HttpWebRequest BuildWebRequest(string type, string value)
        {
            string url = string.Format(ServiceUrl, type, value);

            if (BusinessKey != null)
            {
                url = BusinessKey.GenerateSignature(url);
            }

            var req = WebRequest.Create(url) as HttpWebRequest;

            if (this.Proxy != null)
            {
                req.Proxy = Proxy;
            }
            req.Method = "GET";
            return(req);
        }
Example #3
0
 public GoogleGeocoder(BusinessKey businessKey)
 {
     BusinessKey = businessKey;
 }