// This file automatically generated by: // Apache Etch 1.2.0-incubating (LOCAL-0) / csharp 1.2.0-incubating (LOCAL-0) // Mon Mar 28 12:14:36 CEST 2011 // This file is automatically created for your convenience and will not be // overwritten once it exists! Please edit this file as necessary to implement // your service logic. using System; using Org.Apache.Etch.Bindings.Csharp.Support; using Org.Apache.Etch.Bindings.Csharp.Util; using org.apache.etch.examples.mixin.types.Example; namespace org.apache.etch.examples.mixin { ///Main implementation for ExampleListener. public class MainExampleListener : ExampleHelper.ExampleServerFactory { ///Main for ExampleListener. ///Command Line Arguments public static void Main(String[] args) { // TODO: Change to correct URI string uri = "tcp://127.0.0.1:4001"; ServerFactory listener = ExampleHelper.NewListener( uri, null, new MainExampleListener()); // Start the Listener listener.TransportControl( TransportConsts.START_AND_WAIT_UP, 4000 ); } ///Return a new instance of ExampleServer. ///Reference to remote service ///Server Implementation public ExampleServer NewExampleServer( RemoteExampleClient client ) { return new ImplExampleServer( client ); } } }