public getContentResponse GetContent([System.Xml.Serialization.XmlElementAttribute(Namespace = "urn:msdn-com:public-content-syndication")] getContentRequest getContentRequest) { object[] results = this.Invoke("GetContent", new object[] { getContentRequest }); return((getContentResponse)(results[0])); }
/// <remarks/> public void GetContentAsync(getContentRequest getContentRequest, object userState) { if ((this.GetContentOperationCompleted == null)) { this.GetContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetContentOperationCompleted); } this.InvokeAsync("GetContent", new object[] { getContentRequest }, this.GetContentOperationCompleted, userState); }
protected virtual string GetUrl(string id) { if (_msdnService == null) { return(null); } getContentRequest msdnRequest = new getContentRequest(); msdnRequest.contentIdentifier = "AssetId:" + id; msdnRequest.locale = _locale; // For the Expression SDK... if (id.IndexOf("Microsoft.Expression", StringComparison.OrdinalIgnoreCase) >= 0 || id.IndexOf("System.Windows.Interactivity", StringComparison.OrdinalIgnoreCase) >= 0) { msdnRequest.version = "expression.40"; } else if (id.IndexOf("System.Web.Mvc", StringComparison.OrdinalIgnoreCase) >= 0) { if (!String.IsNullOrEmpty(_mvcVersion)) { msdnRequest.version = _mvcVersion; } } else if (!String.IsNullOrEmpty(_version)) { msdnRequest.version = _version; } string endpoint = null; try { getContentResponse msdnResponse = _msdnService.GetContent(msdnRequest); endpoint = msdnResponse.contentId; } catch (WebException) { _msdnService = null; } catch (SoapException) { // lookup failed } return(endpoint); }
/// <remarks/> public void GetContentAsync(getContentRequest getContentRequest) { this.GetContentAsync(getContentRequest, null); }
/// <remarks/> public System.IAsyncResult BeginGetContent(getContentRequest getContentRequest, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("GetContent", new object[] { getContentRequest }, callback, asyncState)); }