silverlight中WCF服务定义终结点后可以方便部署

View Code
string full = Application.Current.Host.Source.AbsoluteUri;
full = full.Substring(0, full.LastIndexOf('/')) + "/../WcfService/socketSeismicSurvey.svc";
sc = new ServiceReference.VertexServiceClient();
sc.Endpoint.Address = new System.ServiceModel.EndpointAddress(full);
原文地址:https://www.cnblogs.com/tgcoy/p/2396450.html