public ClientConnectionDlg(IGenesisApplication app, ClientHubProvider hub) { InitializeComponent(); _app = app; _clientHub = hub; }
private void Disconnect() { _hub.DisconnectHub(); _app.AppID = 0; _hub = null; ChannelServices.UnregisterChannel(_chan); _app = null; }
public void Finish(IGenesisApplication app) { if (_hub != null) { _hub.UnregisterApplication(app.AppID); Disconnect(); } }
public bool Initialize(IGenesisApplication app) { if (_hub == null) _hub = new Hub(); _hub.RegisterApplication(app); return true; }
public bool Initialize(IGenesisApplication app) { if (_hub != null) return false; ChannelServices.RegisterChannel(_chan, false); Hub mainHub = (Hub)Activator.GetObject(typeof(Hub), _url); _hub = new HubProxy(mainHub); _hub.RegisterApplication(app); mainHub.AboutToDie += new Hub.DeathBedEvent(OnDeathBed); _app = app; return true; }
public bool Initialize(IGenesisApplication app) { if (_hub != null) return false; _hub = new Hub(); _hub.RegisterApplication(app); foreach (IChannel chan in _chans) ChannelServices.RegisterChannel(chan, false); RemotingServices.Marshal(_hub, ObjectName); return true; }
public void Finish(IGenesisApplication app) { if (_hub != null) { _hub.UnregisterApplication(app.AppID); app.AppID = 0; _hub.Dispose(); RemotingServices.Disconnect(_hub); _hub = null; foreach (IChannel chan in _chans) ChannelServices.UnregisterChannel(chan); } }
public ObserverEventProvider(IGenesisApplication app) { _appId = app.AppID; }