Exemple #1
0
        internal static string GetClientProxyScript(Type contractType, string path, bool debugMode, ServiceEndpoint serviceEndpoint)
        {
            ContractDescription            contract       = ContractDescription.GetContract(contractType);
            WebServiceData                 webServiceData = GetWebServiceData(contract);
            WCFServiceClientProxyGenerator proxyGenerator = new WCFServiceClientProxyGenerator(path, debugMode, serviceEndpoint);

            return(proxyGenerator.GetClientProxyScript(webServiceData));
        }
        string GetProxyContent(Uri baseUri)
        {
            string proxy = this.proxyCache.Lookup(baseUri.Authority);

            if (String.IsNullOrEmpty(proxy))
            {
                proxy = WCFServiceClientProxyGenerator.GetClientProxyScript(this.endpoint.Contract.ContractType, baseUri.AbsoluteUri, this.debugMode, endpoint);
                this.proxyCache.AddOrUpdate(baseUri.Authority, proxy);
            }
            return(proxy);
        }
 internal static string GetClientProxyScript(Type contractType, string path, bool debugMode, ServiceEndpoint serviceEndpoint) 
 {
     ContractDescription contract = ContractDescription.GetContract(contractType);
     WebServiceData webServiceData = GetWebServiceData(contract);
     WCFServiceClientProxyGenerator proxyGenerator = new WCFServiceClientProxyGenerator(path, debugMode, serviceEndpoint);
     return proxyGenerator.GetClientProxyScript(webServiceData);
 }