/// <summary> /// Create Session with appropriate session type /// </summary> /// <param name="sessionType"></param> public void CreateSession(UCC_SESSION_TYPE sessionType) { // Create Session IUccSessionManager sessionManager = this.endpoint as IUccSessionManager; IUccSession session = sessionManager.CreateSession(sessionType, null); // Register to receive events if (sessionType == UCC_SESSION_TYPE.UCCST_INSTANT_MESSAGING) { this.imSession = session; // Advise for InstantMessagingSession Events Advise <_IUccInstantMessagingSessionEvents>(session, this); } else if (sessionType == UCC_SESSION_TYPE.UCCST_AUDIO_VIDEO) { this.avSession = session; } // Advise for SessionParticipantCollectionEvents & SessionEvents Advise <_IUccSessionParticipantCollectionEvents>(session, this); Advise <_IUccSessionEvents>(session, this); }
/// <summary> /// Create Session with appropriate session type /// </summary> /// <param name="sessionType"></param> public void CreateSession(UCC_SESSION_TYPE sessionType) { // Create Session IUccSessionManager sessionManager = this.endpoint as IUccSessionManager; IUccSession session = sessionManager.CreateSession(sessionType, null); // Register to receive events if (sessionType == UCC_SESSION_TYPE.UCCST_INSTANT_MESSAGING) { this.imSession = session; // Advise for InstantMessagingSession Events Advise<_IUccInstantMessagingSessionEvents>(session, this); } else if (sessionType == UCC_SESSION_TYPE.UCCST_AUDIO_VIDEO) { this.avSession = session; } // Advise for SessionParticipantCollectionEvents & SessionEvents Advise<_IUccSessionParticipantCollectionEvents>(session, this); Advise<_IUccSessionEvents>(session, this); }