I have the following WCF service host console application:
static void Main(string[] args)
{
ServiceHost serviceHost =
new ServiceHost(typeof(MyServiceName<int>));
serviceHost.Open();
Console.ReadLine();
}
I tried to configure an endpoint for it:
<services>
<service name="MyNamespace.MyServiceName<int>">
<endpoint
address="net.tcp://localhost:8002/MyServiceName"
binding="netTcpBinding"
contract="MyNamespace.IMyServiceName<int>"/>
</service>
</services>
But it doesn't work. Is the <
and >
the problem?