상속: System.MarshalByRefObject, IDebuggerTestHost, IDisposable
예제 #1
0
        public static DebuggerTestHost Create()
        {
            try {
                DebuggerTestHost host = new DebuggerTestHost ();
                if (host.server == null)
                    return null;

                return host;
            } catch {
                return null;
            }
        }
예제 #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);
        }
예제 #3
0
 static DebuggerTestAddIn()
 {
     DebuggerTestHost.InitializeRemoting();
 }