上一篇文章中介绍了WCF运行时体系结构及客户、服务器端的扩展点。下面以一个简单的Demo来演示扩展WCF的运行时行为。源代码下载

假设有一个WCF服务接口,提供以用户名进行用户身份编号的查询。

[ServiceContract] 
    
public interface IIdentityService
    {
        [IdentityValidate]
        [IdentityCache] 
        [OperationContract]
        
int GetIDByName(string name);
}

相关文章:

  • 2022-12-23
  • 2021-11-09
  • 2022-01-26
  • 2021-09-05
  • 2021-05-17
  • 2022-12-23
  • 2021-08-21
猜你喜欢
  • 2021-08-21
  • 2022-02-03
  • 2021-06-19
  • 2021-06-12
  • 2021-05-06
  • 2022-03-05
  • 2022-01-04
相关资源
相似解决方案