StartApplication() public method

public StartApplication ( ) : void
return void
Example #1
0
        static void Main()
        {
            // instantiate the controller
            Controller controller = Controller.GetController();

            // publish the controller to the remoting system
            TcpChannel channel = new TcpChannel(1170);

            ChannelServices.RegisterChannel(channel, false);
            RemotingServices.Marshal(controller, "controller.rem");

            // hand over to the controller
            Application.EnableVisualStyles();
            controller.StartApplication();

            // the application is finishing - close down the remoting channel
            RemotingServices.Disconnect(controller);
            ChannelServices.UnregisterChannel(channel);
        }