This project is read-only.

Useage

To use the WcfCookieManager classes:

  1. Add a reference to the WcfCookieManager.dll assembly.
  2. Create an instance of the WcfCookieManager.CookieManagerEndpointBehavior class that is in a scope that is available to all your WCF clients.
  3. Add the instance of the WcfCookieManager.CookieManagerEndpointBehavior class to the EndpointBehaviors collection of the Endpoint property for each instance of your WCF client.

Example

using WcfCookieManager;
.
.
.
CookieManagerEndpointBehavior cookieManager = new CookieManagerEndpointBehavior();

myServices.MyClient1 myClient1 = new myService.MyClient1();
myClient1.Endpoint.EndpointBehaviors.Add(cookieManager);

myServices.MyClient2 myClient2 = new myServices.MyClient2();
myClient2.Endpoint.EndpointBehaviors.Add(cookieManager);

In the above example, the myClient1 and myClient2 clients will share cookies across requests.

Last edited Aug 26, 2013 at 8:08 PM by aitray, version 1

Comments

No comments yet.