Skip to content

Instantly share code, notes, and snippets.

@chester89
Created August 12, 2016 09:56
Show Gist options
  • Save chester89/269b8308f649a5460f539366ddfe746b to your computer and use it in GitHub Desktop.
Save chester89/269b8308f649a5460f539366ddfe746b to your computer and use it in GitHub Desktop.
Nginx request builder for GeocodeSharp library
using System.Collections.Generic;
using System.Linq;
namespace GeocodeSharp
{
public class NginxProxyRequestBuilder : DefaultRequestBuilder
{
public NginxProxyRequestBuilder(string domain, bool isProtected = true) : base(domain, isProtected)
{
}
public NginxProxyRequestBuilder(string domain, string apiKey): this(domain)
{
_clientKey = apiKey;
}
public NginxProxyRequestBuilder(string domain, string clientId, string cryptoKey): this(domain)
{
_clientId = clientId;
_cryptoKey = cryptoKey;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment