EndpointAddressBuilder Class
.NET Framework 3.0
A factory for producing new (immutable) endpoint addresses with specific property values.
Namespace: System.ServiceModel
Assembly: System.ServiceModel (in system.servicemodel.dll)
Assembly: System.ServiceModel (in system.servicemodel.dll)
The new endpoint address can have its property values initialized from the property values of an existing endpoint address using the EndpointAddressBuilder(EndpointAddress) constructor.
The endpoint addresses created can have their URI and identity values set using the Uri and Identity properties of the endpoint address builder. Note that EndpointAddress is an immutable class.
EndpointAddressBuilder eab = new EndpointAddressBuilder(); eab.Uri = new Uri("http://localhost/Uri"); eab.Headers.Add(AddressHeader.CreateAddressHeader("n", "ns", "val")); eab.Identity = EndpointIdentity.CreateUpnIdentity("foo"); XmlDictionaryReader xdrExtensions = eab.GetReaderAtExtensions(); StringReader sr = new StringReader(@"<myExtension xmlns=""myExtNs"" />"); eab.SetExtensionReader(XmlDictionaryReader.CreateDictionaryReader(XmlReader.Create(sr))); EndpointAddress ea = eab.ToEndpointAddress(); sr = new StringReader(@"<myMetadata xmlns=""myMetaNs"" />"); XmlDictionaryReader xdrMetaData = eab.GetReaderAtMetadata(); eab.SetMetadataReader(XmlDictionaryReader.CreateDictionaryReader(XmlReader.Create(sr)));
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.Community Additions
ADD
Show: