/// <summary> /// Adds given session to the application. /// </summary> /// <param name="session">The session.</param> /// <returns>Session configuration.</returns> public DextopConfig AddSession(DextopSession session) { var config = session.Initialize(this, Guid.NewGuid().ToString()); if (!this.session.TryAdd(session.SessionId, session)) throw new DextopInternalException(); return config; }
/// <summary> /// Adds given session to the application. /// </summary> /// <param name="session">The session.</param> /// <returns>Session configuration.</returns> public DextopConfig AddSession(DextopSession session) { var config = session.Initialize(this, Guid.NewGuid().ToString()); if (!this.session.TryAdd(session.SessionId, session)) { throw new DextopInternalException(); } return(config); }
/// <summary> /// Register session within the module. Module can optionaly create a remotable object associated with the session. /// </summary> /// <param name="session"></param> /// <returns></returns> protected internal virtual IDextopRemotable RegisterSession(DextopSession session) { return null; }
/// <summary> /// Register session within the module. Module can optionaly create a remotable object associated with the session. /// </summary> /// <param name="session"></param> /// <returns></returns> protected internal virtual IDextopRemotable RegisterSession(DextopSession session) { return(null); }