Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            this.Text += ": " + Thread.CurrentThread.ManagedThreadId;
            m_proxy    = new localhost.UIServiceClient();
            ICommunicationObject obj = m_proxy as ICommunicationObject;

            obj.Faulted += new EventHandler(obj_Faulted);
        }
Ejemplo n.º 2
0
 void obj_Faulted(object sender, EventArgs e)
 {
     MessageBox.Show("Communication channel has faulted. Creating a new proxy instance.");
     m_proxy = new localhost.UIServiceClient();
 }