Export (0) Print
Expand All

ChannelFactory<TChannel> Constructor

Initializes a new instance of the ChannelFactory<TChannel> class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by Silverlight for Windows Phone ChannelFactory<TChannel>(String) Initializes a new instance of the ChannelFactory<TChannel> class and configures the endpoint.
Protected method ChannelFactory<TChannel>(Type) Initializes a new instance of the ChannelFactory<TChannel> class.
Public method Supported by Silverlight for Windows Phone ChannelFactory<TChannel>(Binding, EndpointAddress) Initializes a new instance of the ChannelFactory<TChannel> class with a specified endpoint address and binding configuration.
Public method Supported by Silverlight for Windows Phone ChannelFactory<TChannel>(String, EndpointAddress) Initializes a new instance of the ChannelFactory<TChannel> class with a specified endpoint address and endpoint configuration.
Top


//Initialize channel factory with a binding and a remote endpoint address.
BasicHttpBinding binding = new BasicHttpBinding();
EndpointAddress address = new EndpointAddress("http://localhost:8000/ChannelApp");
ChannelFactory<IRequestChannel> factory =
    new ChannelFactory<IRequestChannel>(binding, address);


Community Additions

ADD
Show:
© 2015 Microsoft