• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






stanley107

asp.net
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2012年12月18日

无配置wcf Host
摘要: internal class Program { private static bool IsInterFaceDll(FileInfo file) { Assembly ass = Assembly.LoadFile(file.FullName); Type[] types = ass.GetTypes(); Type sContractType = typeof(ServiceContractAttribute); foreach (Type type in types... 阅读全文
posted @ 2012-12-18 13:09 stabley107 阅读(244) 评论(0) 推荐(1)
 
无配置 wcf Client
摘要: public sealed class WCFFactory<TChannel> : ChannelFactory<TChannel> { public static WCFFactory<TChannel> GetFactorty() { WSHttpBinding binding = new WSHttpBinding(); EndpointAddress address = new EndpointAddress(new Uri(string.Format("http://{0}/Bll/",Configura... 阅读全文
posted @ 2012-12-18 13:03 stabley107 阅读(407) 评论(1) 推荐(0)