WCF supports two-way TCP connections, and supports the exchange protocol between the server and client. It is implemented through the full duplex mode of subscription-release. X509 Certificate encryption is required for full-duplex user name and password verification, x509 Certificate is optional for password verification in ticket mode.
In full-duplex mode, there will be a disconnection problem. At present, I have not solved it at all. In the unit project, only the reconnection is handled, but I hope someone with knowledge can tell me a better way...
The following is a demo of WCF user verification, including the ticket mode and full duplex mode. I am just getting started. Please advise me more.
Attached Demo: wcfdemo.rar
You must register an X509 Certificate before running the demo. Method:
Open a command window for the administrator ID, find the makecert.exe address, and enter the following command
Makecert.exe-Sr localmachine-SS my-A sha1-N Cn = poker-sky exchange-PE
Reference: http://www.cnblogs.com/xiaozhuang/archive/2008/04/30/1177399.html
Full-duplex WCF and user name and password verification