• 大小: 0.15M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: WCF  验证  证书  c  密码  

资源简介

通过继承 IClientMessageInspector  IDispatchMessageInspector   实现 请求消息头的验证

资源截图

代码片段和文件信息

using System;

namespace WcfClient
{
    class Program
    {
        static void Main(string[] args)
        {
            WcfSvc.Service1Client client = new WcfSvc.Service1Client();
            var result = client.GetData(300);
            Console.WriteLine(result);
            Console.Read();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-01-09 23:01  WcfMessageInspectorTest\
     目录           0  2011-01-10 01:01  WcfMessageInspectorTest\WcfClient\
     目录           0  2011-01-10 01:01  WcfMessageInspectorTest\WcfClientInterpector\
     目录           0  2011-01-09 17:11  WcfMessageInspectorTest\WcfClientInterpector\bin\
     目录           0  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\bin\Debug\
     文件        5632  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\bin\Debug\WcfClientInterpector.dll
     文件       13824  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\bin\Debug\WcfClientInterpector.pdb
     文件         911  2011-01-16 17:12  WcfMessageInspectorTest\WcfClientInterpector\ClientInterpector.cs
     文件        1244  2011-01-16 17:11  WcfMessageInspectorTest\WcfClientInterpector\MyClientBehavior.cs
     目录           0  2011-01-09 17:09  WcfMessageInspectorTest\WcfClientInterpector\obj\
     目录           0  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\obj\Debug\
     文件        6026  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2011-01-09 17:09  WcfMessageInspectorTest\WcfClientInterpector\obj\Debug\TempPE\
     文件         601  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\obj\Debug\WcfClientInterpector.csproj.FileListAbsolute.txt
     文件        5632  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\obj\Debug\WcfClientInterpector.dll
     文件       13824  2011-01-16 17:13  WcfMessageInspectorTest\WcfClientInterpector\obj\Debug\WcfClientInterpector.pdb
     目录           0  2011-01-09 17:09  WcfMessageInspectorTest\WcfClientInterpector\Properties\
     文件        1466  2011-01-09 17:09  WcfMessageInspectorTest\WcfClientInterpector\Properties\AssemblyInfo.cs
     文件        2543  2011-01-09 20:07  WcfMessageInspectorTest\WcfClientInterpector\WcfClientInterpector.csproj
     文件         142  2011-01-16 17:55  WcfMessageInspectorTest\WcfClientInterpector\WcfClientInterpector.csproj.vs10x
     文件        2416  2011-01-09 22:22  WcfMessageInspectorTest\WcfClient\app.config
     目录           0  2011-01-09 22:18  WcfMessageInspectorTest\WcfClient\bin\
     目录           0  2011-01-16 17:13  WcfMessageInspectorTest\WcfClient\bin\Debug\
     文件        8192  2011-01-16 17:13  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClient.exe
     文件        2416  2011-01-09 22:22  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClient.exe.config
     文件       17920  2011-01-16 17:13  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClient.pdb
     文件       11600  2011-01-16 17:13  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClient.vshost.exe
     文件        2416  2011-01-09 22:22  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClient.vshost.exe.config
     文件         490  2010-03-17 22:39  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClient.vshost.exe.manifest
     文件        5632  2011-01-16 17:13  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClientInterpector.dll
     文件       13824  2011-01-16 17:13  WcfMessageInspectorTest\WcfClient\bin\Debug\WcfClientInterpector.pdb
............此处省略118个文件信息

评论

共有 条评论