public ORNGRPCService(string uri, Page page, bool editMode, string[] chnls) { this.om = OpenSocialManager.GetOpenSocialManager(uri, page, false); this.channels.AddRange(chnls); // Add to Session so that it does not get prematurely garbage collected HttpContext.Current.Session[KEY_PREFIX + ":" + om.GetGuid().ToString()] = this; managers.Add(new WeakReference(this)); DebugLogging.Log("ORNGRPCService created :" + om.GetGuid().ToString() + " channels " + this.channels.ToString()); }
public ORNGRPCService(string uri, Page page, bool editMode) { this.om = OpenSocialManager.GetOpenSocialManager(uri, page, false); // Add to Session so that it does not get prematurely garbage collected HttpContext.Current.Session[KEY_PREFIX + ":" + om.GetGuid().ToString()] = this; managers.Add(new WeakReference(this)); }
public ORNGCallbackResponder(string uri, Page page, bool editMode, string request) { this.om = OpenSocialManager.GetOpenSocialManager(uri, page, editMode, false); this.requestToRespondTo = request; // Add to Session so that it does not get prematurely garbage collected HttpContext.Current.Session[KEY_PREFIX + requestToRespondTo + ":" + om.GetGuid().ToString()] = this; managers.Add(new WeakReference(this)); }
private bool match(Guid guid, string channel) { return(guid.Equals(om.GetGuid()) && channels.Contains(channel)); }