BlitsMe.TransportEmulator.ProxyTransportManager.SetProxy C# (CSharp) Méthode

SetProxy() public méthode

public SetProxy ( ProxyTransportManager transportManager ) : void
transportManager ProxyTransportManager
Résultat void
        public void SetProxy(ProxyTransportManager transportManager)
        {
            proxy = transportManager;
        }

Usage Example

Exemple #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);
        }
All Usage Examples Of BlitsMe.TransportEmulator.ProxyTransportManager::SetProxy