Allow component registration specification of LifeStyle using LifeStyleType.
[castle.git] / Experiments / Attic / WindsorAndRemoting / Client1 / Form1.cs
blobc05666f21aefa6e8b4e8b3722962de8b069a37e4
1 namespace Client1
3 using System;
4 using System.Runtime.Remoting;
5 using System.Windows.Forms;
6 using Server;
8 public partial class Form1 : Form
10 public Form1()
12 InitializeComponent();
15 private void button1_Click(object sender, EventArgs e)
17 Service1 serv1 = (Service1)
18 RemotingServices.Connect(typeof(Service1), "tcp://localhost:2133/serv1");
20 serv1.DoOperation();
23 private void button2_Click(object sender, EventArgs e)
25 IService2 serv2 = (IService2)
26 RemotingServices.Connect(typeof(IService2), "tcp://localhost:2133/serv2");
28 serv2.DoOperation2();