Freigeben über


Three Networking Questions Answered with Samples

How do I remove or change the framing headers used for a TCP connection?

By writing a transport channel you can control exactly what information is read or written to the TCP socket. An example of doing this is in the WSE interoperability sample.

How do I pass credentials from the client to the service so that the service runs with the client's identity?

The simplest configuration for passing credentials from an authenticated client to a service is covered by the client impersonation sample.

Why does adding a metadata endpoint cause the service to fail to start with an AddressAlreadyInUse exception?

This is usually caused by trying to share a port between two endpoints that are configured differently as explained after the TCP port sharing sample. The configuration of the metadata endpoint needs to have port sharing enabled and match the configuration of the other service endpoints.