public void ContentSearchASync(ContentSearchParameters parameters, ContentSearchCallback callback) { var query = GetQueryTranslator().Translate(parameters); var dlgt = new LoadJsonDelegate(_service.LoadContent); dlgt.BeginInvoke(query, ContentSearchAsyncCallback, new AsyncSearchCallbackParameter { Delegate = dlgt, CallbackFunction = callback }); }
public void ItemASync(string itemId, ItemCallback callback) { var query = GetQueryTranslator().Translate(itemId); var dlgt = new LoadJsonDelegate(_service.LoadContent); dlgt.BeginInvoke(query, ItemAsyncCallback, new AsyncItemCallbackParameter { Delegate = dlgt, CallbackFunction = callback }); }