-
WCF四种常用应用场景实例下载
使用注意:建立demo数据库,使用aspnet_regsql.exe建立Memmbership一些安全场景需要证书,使用CertTool的工具生成具体的授权时的角色和用户名字参考HostSvc、Client代码修改成测试用的后才能正常运行 一、目录结构Common来自于Programming WCF Services[ISBN: 978-0-596-80548-7],实现WCF的声明式安全HostSvc:不同场景的接口和服务实现,命令行承载服务MembershipAdmin:用于操作demo数据库membership的成员操作,Asp.net Configuraion 可添加角色和用户,并使用IIS服务承载HostSvc实现的服务Client: 使用各种服务的客户端场景 二、四种场景的区别:Intranet Transport保护 使用tcp绑定 windows集成的安全 Internet 只能使用Message形式的保护,需要数字证书 tcp wsHttp绑定 使用Membership进行安全认证 Anoymous 使用Message形式的保护,需要数字证书 tcp wsHttp绑定 None 消息不保护 http tcp wsHttp绑定 三、App-comment.config: 包含对于各种配置的说明 四、证书的生成:CertToolSetupCerts.bat生成,命令行工具从VS SDK已经拷贝过来 五、IIS中承载服务的注意: 需要把WCFServer赋予IIS的账号以权限 受信任人中加入WCFServer证书 六、证书如何管理:1、命令行启动mmc2、“添加、删除管理单元"加入"证书", 按照提示选择当前用户或本机3、此时即可管理IIS的权限操作: 在"个人/证书"下找到WCFServer,"更多操作/所有任务/管理私钥",弹出界面设置用户权限受信任人: 在"个人/证书"下找到WCFServer,导出证书,然后在”受信息人/证书“下导入以上证书即可 七、远程机器客户端的证书问题 导出WCFServer【不要私钥】 然后在远程客户端机器上导入即可,此时的公钥可以用于消息的验证 八、IIS中承载MembershipAdmin中加入了对应的四个.svc文件【逻辑使用的一个HostSvc中的实现】以提供WCF服务,具体配置和HostSvc一致,当然地址不一样了此例是把MembershipAdmin作为应程序发布到80端口的demo下 注意:1、需要设置IIS的http和net.tcp协议支持2、数据库demo需要能被IIS账号访问3、WCFServer证书需要能被IIS账号访问
- 2021-03-03 08:29:33下载
- 积分:1
-
STM32-Copter-RTThread-code
匿名飞控源码 使用Rtt系统写的源码 效果不错(stm32 copter code)
- 2021-03-29 14:39:11下载
- 积分:1
-
dlltest
加载动态链接库,使用里面的函数,来移动图片(Load the dynamic link library, inside a function, to move the picture)
- 2013-05-14 16:49:28下载
- 积分:1
-
DemoTest
说明: 此程序主要是为了实现地图区域、放大等功能,使用者 可以在此基础上继续修改(The main purpose of this program is to realize the functions of map area and enlargement. Users can continue to modify it on this basis)
- 2020-06-19 04:00:01下载
- 积分:1
-
pvb-gambardbxxxx
save picture webcam to computer
- 2014-02-05 11:23:41下载
- 积分:1
-
NET_Source
是LogOutputSocketProtocol的管理对 象;m_uploadSocketProtocolMgr是UploadSocketProtocol的管理对象,用于检测是否同时上传同一个文 件;m_downloadSocketProtocolMgr是DownloadSocketProtocol的管理对象;m_daemonThread 是守护进程,用于关闭超时连接。
2. AsyncSocketUserToken:用于SocketAsyncEventArgs绑定,保存 每个Socket服务对象,包括:m_receiveEventArgs接收数据异步事件;m_asyncReceiveBuffer接收数据异步事件使 用的缓存;m_sendEventArgs发送数据异步事件;m_receiveBuffer接收异步事件返回的数据存放缓存,用于后续的分 包;m_sendBuffer用于保存发送的数据缓存;m_asyncSocketInvokeElement是用于协议调用的基类,主要实现分包,并发 发送的包加到发送列表中,发送完成回调时继续发送下一个包;m_connectSocket是连接的Socket对象。(LogOutputSocketProtocol is the management object; m_uploadSocketProtocolMgr is UploadSocketProtocol management object, designed to detect and upload the same file; m_downloadSocketProtocolMgr is DownloadSocketProtocol management object; m_daemonThread is the guardian of process for closing the connection timeout.
2.: AsyncSocketUserToken for SocketAsyncEventArgs binding, save each Socket service object, including: m_receiveEventArgs receives data asynchronous events; m_asyncReceiveBuffer receive data asynchronous events using m_sendEventArgs to send data cache; asynchronous events; m_receiveBuffer receive asynchronous event data returned by the stored cache for subsequent subcontracting; m_sendBuffer is used to preserve the data sent by the cache; m_asyncSocketInvokeElement is the base class for the agreement calls, the main sub package to send a list of concurrent sending, sending a packet to send the completed callback; m_connectSocket is connected to the Socket object.)
- 2017-08-07 14:02:38下载
- 积分:1
-
disklock-pswd
磁盘锁工具,保护电脑非法登陆。当非法开机时,电脑提示输入密码,正确后可继续引导。(Disk lock tool to protect the computer illegal landing.When illegal boot, the computer prompts to enter the password, you can continue to guide the correct.)
- 2016-11-10 21:29:55下载
- 积分:1
-
这是一个简单的TCP客户端程序,对入门者不错的哦
这是一个简单的TCP客户端程序,对入门者不错的哦-This is a simple TCP client to beginners oh good
- 2022-08-14 18:26:44下载
- 积分:1
-
HDR
说明: 處理高動態範圍程式碼 主要將數張圖片合成出一張HDR圖片(Code dealing with high dynamic range)
- 2011-04-14 12:34:47下载
- 积分:1
-
TheCPPProgrammingLanguage
thec++programming 特别版,中文版(thec++ programming Special Edition, Chinese version)
- 2011-07-05 15:08:18下载
- 积分:1