public DispatchService(WcfServerTransportAdapter transportAdapter) { if (transportAdapter == null) throw new ArgumentNullException("transportAdapter"); _transportAdapter = transportAdapter; }
public DispatchService(WcfServerTransportAdapter transportAdapter) { if (transportAdapter == null) { throw new ArgumentNullException("transportAdapter"); } _transportAdapter = transportAdapter; }
static void Main(string[] args) { using (var transport = new WcfServerTransportAdapter() { BaseAddress = "net.tcp://localhost:9091" }) { var protocol = ServerProtocolSetup.WithChannel(x => transport); using (var host = new ZyanComponentHost("HelloWcf", protocol)) { host.RegisterComponent<IEchoService, EchoService>(); Console.WriteLine("Server läuft!"); Console.ReadLine(); } } }