The first 2010 Code Camp for the Philly.NET community is going on this coming Saturday, April 10th.
I’ll be doing a session called “Integrating Search: An Adventure In Dependency Injection”. This one covers quite a bit so hopefully attendees will leave with their heads ready to explode. I’ll be covering an intro to the search engine APIs of all three major search engines: Bing, Google, and Yahoo. I’ll be showing how to use WCF to access each API, each being different from the other. The Bing API will be using SOAP, the Google and Yahoo ones, REST. Google’s API however will use JSON while Yahoo will use POX.
Afterwards I’ll be using a small makeshift DI container to put everything together so a common API is exposed to the consumer.
Finally, I’ll show off some drag-and-drop custom controls that will give you search capability in your applications. And I have both Windows and Web versions of these.
Time permitting, I’ll be showing off a freeware product I’m working on called FluentSearch. This will let you perform searches against any search engine using a fluent interface, like this:
private void btnBingSearch_Click(object sender, EventArgs e)
{
var request = FluentSearch.CreateRequest().SearchEngine("bing")
.SearchFor("Miguel A. Castro").PageSize(5).PageNumber(1)
.Web.UseKey("{your API key goes here}")
.CallbackTo(ResponseCallback, SynchronizationContext.Current);
IAsyncResult asyncResult = request.ExecuteAsync();
}
private void ResponseCallback(SearchResponse response)
{
DisplayResults(response);
}
This tool is not quite completed but will hopefully be far enough to share by the time of this code camp.
All the slides and code from the presentation will be available in the Downloads section of this site. Also, I’m told that this will be one of a selected few sessions that will be professionally filmed for airing on Microsoft’s Channel 9.
See you there.