public ProxyLoadBalancerClientPeerSessionFactory(ILog logger, IConnectionGateKeeper <ProxySessionType> gateKeeper, IPortToSessionTypeService <ProxySessionType> portConverter, PeerFactory <AuthServicePeerSession> authFactory, PeerFactory <UserClientPeerSession> userFactory) { connectionGateKeeper = gateKeeper; portToSessionTypeConverter = portConverter; Logger = logger; authPeerFactory = authFactory; userPeerFactory = userFactory; }
private void RegisterClick(object sender, EventArgs e) { Peer.Self = PeerFactory.CreateInstance(peerName.Text, _form.ShowResponse); RemotingConfiguration.RegisterWellKnownServiceType(typeof(PeerContainer), peerName.Text, WellKnownObjectMode.Singleton); _form.Text = peerName.Text; register.Enabled = false; peerName.Enabled = false; _addPeerControl.Enabled = true; }