如何在WCF中显示/隐藏客户端的方法。 [英] How to show/hide method from client in WCF.

查看:58
本文介绍了如何在WCF中显示/隐藏客户端的方法。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有WCF服务并且有三个客户端,我想向客户端1显示唯一的2个方法,向客户端2显示3个方法,向客户端3显示1个方法。

If i have WCF service and there are three client and i want to show the only 2 method to client 1 and 3 methods to client 2 and 1 method to client 3. What will be the approach?

推荐答案

这似乎是一个古老的问题。如果不使用安全性,您似乎需要拥有三个不同的服务接口,或者在每个服务方法中使用安全性(uid,pwd)和vet。有大量的信息答案,但它归结为公共可用的每种服务方法。我看到了一个使用ASHX的实现,但它并不适合我。
It seems this is an age old issue. Short of using security, it seems you will need to either have three different service interfaces or use security (uid, pwd) and vet in each service method. There is a ton of info answers out there but it comes down to each service method being publically available. I saw one implementation using ASHX but it did not sit well with me.


这篇关于如何在WCF中显示/隐藏客户端的方法。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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