C#、WCF、通过dll隐藏web服务 [英] C#, WCF, Hide web service through dll

查看:27
本文介绍了C#、WCF、通过dll隐藏web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的 dll 中,我有一个对 Web 服务的服务器引用.此 WCF Web 服务对我的使用 dll 的客户端应用程序可见.有没有办法防止这种情况发生?

In my dll I have a server reference to a web service. This WCF web service becomes visible to my client application that uses the dll. Is there a way to prevent this?

谢谢.

推荐答案

添加服务引用时,单击高级"按钮.这将使您可以选择将所有客户端服务类生成为内部而不是公共.

When adding the service reference, click the "Advanced" button. This will give you the option to generate all client service classes as internal instead of public.

这篇关于C#、WCF、通过dll隐藏web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆