Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ITransportListener Dim baseAddress As Uri Dim settings As TransportListenerSettings Dim callback As ITransportListenerCallback instance.Open(baseAddress, settings, callback) |
C# | |
---|---|
void Open( Uri baseAddress, TransportListenerSettings settings, ITransportListenerCallback callback ) |
Parameters
- baseAddress
- The base address.
- settings
- The settings to use when creating the listener.
- callback
- The callback to use when requests arrive via the channel.
Exception | Description |
---|---|
System.ArgumentNullException | Thrown if any parameter is null. |
ServiceResultException | Thrown if any communication error occurs. |
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x