Esempio 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);
        }
Esempio 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();
 }