WCF und Named Pipe

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hallo zusammen,

ich benötige mal einen Anstoß. Ich möchte per WCF dass sich zwei
Instanzen der selben Anwendungen unterhalten. Zweck ist zu erkennen,
dass die Anwendung bereits gestartet ist und diese aktivieren. Wenn
jemand eine andere Idee als WCF Pipe hat wäre ich dankbar. Mit
httpBasicBinding habe ich alles hinbekommen, nur möchte ich keinen
HTTP Port für meine Anwendung aufmachen.

Folgendes habe ich gemacht : app.config das wie in der MSDN Hilfe
hinzugefügt :

<bindings>
<netNamedPipeBinding>
<binding name="Binding1"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536"
maxConnections="10"
maxReceivedMessageSize="65536"
receiveTimeout="00:10:00"
transactionFlow="false">
<security mode="None">
</security>
</binding>
</netNamedPipeBinding>
</bindings>

Dann erzeuge ich die Pipe :

ServiceHost MainHost;
MainHost = new ServiceHost(typeof(InternalCom)); // InternalCom
ist meine Funktionsklasse
// die das Interface IInternalCom implementiert.
MainHost.AddServiceEndpoint(typeof(IInternalCom), new
NetNamedPipeBinding(NetNamedPipeSecurityMode.None), "net.pipe://
localhost/lucki");
MainHost.Open();

Anschließend starte ich Applikation separat und verusuche über
Hinzufügen von Service References die Description auszulesen. Leider
habe ich ganau da meine Probleme. Er sagt :

Metadaten enthalten einen Verweis, der nicht aufgelöst werden kann:
"net.pipe://localhost/lucki".
Wenn der Dienst in der aktuellen Projektmappe definiert ist,
erstellen Sie die Projektmappe, und fügen Sie den Dienstverweis erneut
hinzu.

Der Dienst ist nicht erzeug und ich weiß auch nicht welchen Verweis
nicht aufgelöst werden kann.
Es finden sich auch so wenig Beispiele was NetNamedPipe angeht.

Wenn ich doch weiß, welches Interface ich implementiere und ansprechen
will, warum kann ich das Interface nicht einfach so nutzen wenn ich
nur sage, dass die Instanz aus ner Pipe kommt, so a la Delegate.

Bin dankbar für jegliche Ideen.

Gruß
Martin
.



Relevant Pages

  • Re: creaping coupling......
    ... but it is a more strict contract than required. ... "I am capable of implementing things via interface XYZ i.e. ... consider specifically that we compile, deploy and then we delete a method to ... IWriteable pipe = new Pipe; ...
    (comp.object)
  • Re: [patch] pipe: add support for shrinking and growing pipes
    ... Similar APIs that I can think of like RLIMIT_MEMLOCK and ... it's also an interface so has some ... This is the maximum size of a shared memory segment. ... Including the pipe size limit in this list makes sense. ...
    (Linux-Kernel)
  • Re: [patch] pipe: add support for shrinking and growing pipes
    ... That way a normal user could shrink the pipe buffers, ... a man-pages patch) for these changes? ... Not doing the same for this interface is needlessly inconsistent. ... We can easily make F_GETPIPE_SZ return bytes, but I don't think passing ...
    (Linux-Kernel)
  • Re: [patch] pipe: add support for shrinking and growing pipes
    ... That way a normal user could shrink the pipe buffers, ... a man-pages patch) for these changes? ... Not doing the same for this interface is needlessly inconsistent. ... Author of "The Linux Programming Interface" http://blog.man7.org/ ...
    (Linux-Kernel)
  • Re: Aggregation of E1 interface ?
    ... >> remote router. ... >> So I'm wandering if it is possible to aggregate all those interface into ... single IMA with 8 channels looks like a 16 Mbps pipe). ...
    (comp.dcom.sys.cisco)