Just a little project which should help me with .net WCF learning.
Server - Code Client - Code.
Server - app config
Extend Sample 1 with MEX(Metadata Exchange) endpoing
Extend Sample 2 with MEX(Metadata Exchange) endpoing
Synchronous Request-Reply
Server - Code Client - Code
Asynchronous Request-Reply
Server - app config Client - proxy generator
One way Operation
Server - app config Client - proxy generator
Duplex Operation
Server - app config Client - proxy generator Used TCP binding because Dual HTTP binding doesn't want to work on local machine for both server and client simultaneously.
Data contracts
Server - app config Client - proxy generator Use [KnownType] attribute to specify derived types for WCF framework
Data contracts
Server - app config Client - proxy generator Use config file to specify derived types for WCF framework
Collection Data contracts
Server - app config Client - proxy generator
Message contract
Server - app config Client - proxy generator
Behaviors InstanceContextMode = InstanceContextMode.PerSession ConcurrencyMode = ConcurrencyMode.Single
Behaviors InstanceContextMode = InstanceContextMode.Single ConcurrencyMode = ConcurrencyMode.Multiple
Behaviors InstanceContextMode = InstanceContextMode.Single ConcurrencyMode = ConcurrencyMode.Single
Behaviors InstanceContextMode = InstanceContextMode.PerSession ConcurrencyMode = ConcurrencyMode.Multiple
Behaviors - Transaction InstanceContextMode = InstanceContextMode.PerSession ConcurrencyMode = ConcurrencyMode.Single Also TransactionalCollection is implemented to show transaction work more deeply.
Custom Service Behavior using config file.
Streamed type to send serialized data contract
Security. X.509 certificates + SSL
Generate Server and Client certificate
makecert.exe -n "CN=RootCATest" -r -sv C:\RootCATest.pvk C:\RootCATest.cer
Add RootCATest certificate to a Client and Server machines to "Trusted Root Certification Authorities"
On a server machine generate server cetificate
makecert -sk MyServer C:\RootCATest.cer -sr localmachine -ss my -sky exchange -pe
Bind server certificate on the Server
netsh http add sslcert ipport=0.0.0.0:8002 certhash=<FIND IT> appid="{5ee247fe-720c-469c-834a-66dde49bcdf2}"
Run the Server and the Client
Diagnostics. Turn on Message logging, turn on trace, create own trace source.
Faults. Using FaultException and FaultException
Just a stupid client server chat