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; }