I am trying to run multiple WCF service hosting applications on the same machine.
I want to run more than one application - not in multiple services I change "FOO" for every app, but still can not start many services It seems very easy, but im stuck: ( Regards Like it to do, this is what you have to do, I believe: The reason for this is if you specify a base address that is Using the full URI at the final pin level, without any base address, is created with the listener generated a pipes name [edit below under full URI], which is different in each application frequency , And therefore the listeners of each application can create their own separate pipes without any problem. Edit: To get more accurate, the name of the pipe does not come from the service address itself - it's a GUID that opens the service every time. The name of the shared memory object received from the service address through which the actual name of the pipe is published to potential customers.
var host = new service host (typef (Michaels 1), new Uri [] (new Uri ("Net Pope: // localhost")}); Host.AddServiceEndpoint (typeof (ISomeInterface) New NetNamedPipeBinding (), "FOO"); host.Open ();
string relativeUrIPrite = GetUniquePartFromConfigOfThisApplicationInstance (); var Host = New ServiceHost (Typf (MyClass1)); // No base address is specified host. AddServiceEndpoint (typeof (ISOOM interface), new NetNamePip bindings (), "netpopi: // localhost" + relative Yuri Part); // Specify the full URI for the endpoint host.Open ();
net.pipe uses the scheme, so it is the base address that is used To get the pipe name used by the user is done [edit below], and this is the same in each application example, so only the listener of the first app can create pipe - others fail as you did Have done
Comments
Post a Comment