Inheritance: System.MarshalByRefObject, IDebuggerTestServer
コード例 #1
0
ファイル: DebuggerTestServer.cs プロジェクト: baulig/debugger
        static void Main(string[] args)
        {
            DebuggerTestHost.InitializeRemoting ();

            IDebuggerTestHost host;
            using (MemoryStream ms = new MemoryStream (Convert.FromBase64String (args [0]))) {
                BinaryFormatter bf = new BinaryFormatter ();
                host = (IDebuggerTestHost) bf.Deserialize (ms);
            }

            DebuggerTestServer server = new DebuggerTestServer ();
            host.RegisterServer (server);

            shutdown_event.WaitOne ();

            RemotingServices.Disconnect (server);
        }
コード例 #2
0
        static void Main(string[] args)
        {
            DebuggerTestHost.InitializeRemoting();

            IDebuggerTestHost host;

            using (MemoryStream ms = new MemoryStream(Convert.FromBase64String(args [0]))) {
                BinaryFormatter bf = new BinaryFormatter();
                host = (IDebuggerTestHost)bf.Deserialize(ms);
            }

            DebuggerTestServer server = new DebuggerTestServer();

            host.RegisterServer(server);

            shutdown_event.WaitOne();

            RemotingServices.Disconnect(server);
        }