binding="netTcpBinding"
contract="ServiceReference.IEightBall"
name="netTcpBinding_IEightBall" />
This client-side configuration file is a massive simplification from what the Visual Studio proxy
generator authored. Notice how we have completely removed the existing element.
Originally, the *.config file contained a element with a subelement
that supplied numerous details of the client’s binding settings (timeouts, etc.).
In reality, we never needed that detail for our example, as we automatically obtain the default
values of the underlying BasicHttpBinding object. If we needed to, we could of course update the
existing element to define details of the subelement, but doing so is
not required if we are happy with the default values of the NetTcpBinding object.
In any case, you should now be able to run your client application, and assuming the host is
still running in the background, you are able to move data between your assemblies using TCP.
Do'stlaringiz bilan baham: |