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

资源简介

wcf 通过header 验证用户名密码例子源码(无须证书)

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ServiceHost.BO;

namespace ServiceHost
{
    // NOTE: If you change the interface name “IMessageHeaderAuthentication“ here you must also update the reference to “IMessageHeaderAuthentication“ in Web.config.
    [ServiceContract]
    public interface IMessageHeaderAuthentication
    {
        [OperationContract]
        Person GetPerson();
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1437  2009-02-03 10:39  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Behavior\AuthenticationBehavior.cs

     文件       2954  2009-02-03 10:40  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Behavior\AuthenticationInvoker.cs

     文件        357  2009-02-03 10:10  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\BO\Person.cs

     文件        381  2009-02-02 15:12  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\clientaccesspolicy.xml

     文件        526  2009-02-02 15:09  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\IMessageHeaderAuthentication.cs

     文件        580  2009-02-02 15:09  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\IMessageHeaderOperationBehaviourAuthentication.cs

     文件        564  2009-02-02 15:10  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\IMethodParameterAuthentication.cs

     文件        493  2009-02-02 15:08  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\INoAuthentication.cs

     文件        148  2009-02-02 15:03  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderAuthentication.svc

     文件       1540  2009-02-03 10:08  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderAuthentication.svc.cs

     文件        184  2009-02-02 15:03  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderOperationBehaviourAuthentication.svc

     文件        914  2009-02-03 10:41  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MessageHeaderOperationBehaviourAuthentication.svc.cs

     文件        152  2009-02-02 15:03  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MethodParameterAuthentication.svc

     文件        942  2009-02-03 10:08  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\MethodParameterAuthentication.svc.cs

     文件        126  2009-02-02 15:02  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\NoAuthentication.svc

     文件        632  2009-02-02 15:12  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\NoAuthentication.svc.cs

     文件       1490  2009-02-02 14:59  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Properties\AssemblyInfo.cs

     文件       5341  2009-02-03 10:38  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\ServiceHost.csproj

     文件       1350  2009-02-03 10:38  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\ServiceHost.csproj.user

     文件       9970  2009-02-02 15:06  SL_Secure_WCF\SL_Secure_WCF\Backup\ServiceHost\Web.config

     文件        296  2009-02-02 14:33  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\App.xaml

     文件       2397  2009-02-02 14:33  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\App.xaml.cs

     文件        400  2009-02-02 15:37  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Error.cs

     文件       8234  2009-02-03 14:18  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Page.xaml

     文件      12606  2009-02-03 16:26  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Page.xaml.cs

     文件        207  2009-02-02 14:33  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Properties\AppManifest.xml

     文件       1453  2009-02-02 14:33  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Properties\AssemblyInfo.cs

     文件       1811  2009-02-02 15:32  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Service References\AuthMethodParamServ\configuration.svcinfo

     文件      17930  2009-02-02 15:32  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Service References\AuthMethodParamServ\configuration91.svcinfo

     文件        403  2009-02-02 15:32  SL_Secure_WCF\SL_Secure_WCF\Backup\SL_Secure_WCF\Service References\AuthMethodParamServ\MethodParameterAuthentication.disco

............此处省略229个文件信息

评论

共有 条评论