Skip to content

Instantly share code, notes, and snippets.

@gbellmann
Created March 29, 2015 23:45
Show Gist options
  • Save gbellmann/31856777008c73582b89 to your computer and use it in GitHub Desktop.
Save gbellmann/31856777008c73582b89 to your computer and use it in GitHub Desktop.
public SearchServiceClient GetSearchServiceClient()
{
// El nombre del servicio es solamente la primera parte de la URL del servicio,
// ej.: https://miservicio.search.windows.net/
string searchServiceName = "miservicio";
string apiKey = "Aquí va una de las keys de administración."
SearchServiceClient serviceClient = new SearchServiceClient(searchServiceName, new SearchCredentials(apiKey));
return serviceClient;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment