Export (0) Print
Expand All

How to: Set the authenticationMode Configuration Property 

This example code illustrates how to programmatically set the authenticationMode configuration property.

Example

// Specify server channel properties.
IDictionary dict = new Hashtable();
dict["port"] = 9090;
dict["authenticationMode"] = "IdentifyCallers";
// Set up a server channel.
TcpServerChannel serverChannel = new TcpServerChannel(dict,null);
//Create an HttpChannel object and register the channel
ChannelServices.RegisterChannel(serverChannel);

Compiling the Code

This example requires:

See Also

Show:
© 2014 Microsoft