4 using System
.Runtime
.Remoting
;
5 using System
.Windows
.Forms
;
8 public partial class Form1
: Form
12 InitializeComponent();
15 private void button1_Click(object sender
, EventArgs e
)
17 Service1 serv1
= (Service1
)
18 RemotingServices
.Connect(typeof(Service1
), "tcp://localhost:2133/serv1");
23 private void button2_Click(object sender
, EventArgs e
)
25 IService2 serv2
= (IService2
)
26 RemotingServices
.Connect(typeof(IService2
), "tcp://localhost:2133/serv2");