Exemplo n.º 1
0
        /// <summary>
        /// Creates an OpenVidu session
        /// </summary>
        /// <param name="properties"> The specific configuration for this session
        /// </param>
        /// <returns> The created session
        /// </returns>
        /// <exception cref="OpenViduClientException"> </exception>
        /// <exception cref="OpenViduHttpException">
        /// Value returned from <seealso cref="OpenViduHttpException.Status"/>
        ///<ul>
        ///<li><code>409</code>: you are trying to
        ///assign an already-in-use custom sessionId
        ///to the session. See
        ///<seealso cref="SessionProperties.customSessionId()"/></li>
        ///</ul> </exception>
        public Session createSession(SessionProperties properties)
        {
            var session = new Session(this, properties);

            this._activeSessions[session.getSessionId()] = session;
            return(session);
        }
Exemplo n.º 2
0
 public Session(OpenVidu openVidu)
 {
     _logger          = ApplicationLogging.createLogger("Session");
     this._openVidu   = openVidu;
     this._properties = new SessionPropertiesBuilder().build();
     Task.Run(async() => await getSessionIdHttp()).Wait();
 }
Exemplo n.º 3
0
 public Session(OpenVidu openVidu, SessionProperties properties)
 {
     this._openVidu   = openVidu;
     this._properties = properties;
     Task.Run(async() => await getSessionIdHttp()).Wait();
 }