Наследование: ITransportManager
Пример #1
0
        public TransportForm()
        {
            InitializeComponent();
            XmlConfigurator.Configure();
            _transportManagerA = new ProxyTransportManager(this, true);
            _transportManagerB = new ProxyTransportManager(this, false);
            _transportManagerA.SetProxy(_transportManagerB);
            _transportManagerB.SetProxy(_transportManagerA);

            _formA = new EndpointForm(this, TransportManagerA, true);
            _formB = new EndpointForm(this, TransportManagerB, false);

            _formA.Text = "Client";
            _formB.Text = "Server";
            _formA.Show();
            _formB.Show();
            this.Location = new Point(400, 100);
            _formA.Location = new Point(100, 100);
            _formB.Location = new Point(800, 100);
        }
Пример #2
0
        public TransportForm()
        {
            InitializeComponent();
            XmlConfigurator.Configure();
            _transportManagerA = new ProxyTransportManager(this, true);
            _transportManagerB = new ProxyTransportManager(this, false);
            _transportManagerA.SetProxy(_transportManagerB);
            _transportManagerB.SetProxy(_transportManagerA);

            _formA = new EndpointForm(this, TransportManagerA, true);
            _formB = new EndpointForm(this, TransportManagerB, false);

            _formA.Text = "Client";
            _formB.Text = "Server";
            _formA.Show();
            _formB.Show();
            this.Location   = new Point(400, 100);
            _formA.Location = new Point(100, 100);
            _formB.Location = new Point(800, 100);
        }
Пример #3
0
 public void SetProxy(ProxyTransportManager transportManager)
 {
     proxy = transportManager;
 }
 public void SetProxy(ProxyTransportManager transportManager)
 {
     proxy = transportManager;
 }