EndpointAddress10 Class
Assembly: System.ServiceModel (in system.servicemodel.dll)
The EndpointAddress is not serializable nor is it tied to a particular version of the WS-Addressing specification. This class provides a WS-Addressing V1 compliant wrapper for the EndpointAddress that is serializable (implements the ISerializable interface) and bound to the WS-Addressing V1 wire format. The FromEndpointAddress method does the wrapping and the ToEndpointAddress method does the unwrapping, allowing the recovery of the endpoint address after it has been serialized on the wire.
Windows Communication Foundation (WCF) also supplies a class that provides a serializable type, EndpointAddressAugust2004, which is WS-Addressing August 2004 compliant for legacy purposes.
// Create an EndpointAddress with a specified address. EndpointAddress epa1 = new EndpointAddress("http://localhost/ServiceModelSamples"); Console.WriteLine("The URI of the EndpointAddress is {0}:", epa1.Uri); Console.WriteLine(); //Initialize an EndpointAddress10 from the endpointAddress. EndpointAddress10 epa10 = EndpointAddress10.FromEndpointAddress(epa1); //Serialize and then deserializde the Endpoint10 type. //Convert the EndpointAddress10 back into an EndpointAddress. EndpointAddress epa2 = epa10.ToEndpointAddress(); Console.WriteLine("The URI of the EndpointAddress is still {0}:", epa2.Uri); Console.WriteLine();
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.