private void RaiseSessionCreated(int pid, string displayName, int volume, bool isMuted)
 {
     if (SynchronizationContext.Current != _synchronizationContext)
     {
         _synchronizationContext.Post(o => SessionCreated?.Invoke(this, pid, displayName, volume, isMuted), null);
     }
     else
     {
         SessionCreated.Invoke(this, pid, displayName, volume, isMuted);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Raises the SessionCreated Event.
 /// </summary>
 /// <param name="args">The event data.</param>
 protected virtual void OnSessionCreated(SessionEventArgs args)
 {
     SessionCreated?.Invoke(this, args);
 }
 /// <summary>
 /// Called whenever the <see cref="Session"/> has been created.
 /// </summary>
 /// <remarks>
 /// The <see cref="Session"/> can be created by calling <see cref="CreateSessionAsync"/>.
 /// </remarks>
 protected virtual void OnSessionCreated()
 {
     SessionCreated?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 4
0
 protected virtual void RaiseSessionCreated(WampSessionCreatedEventArgs e)
 {
     SessionCreated?.Invoke(this, e);
 }
        private void NotifySessionCreated(VaspSession session)
        {
            var @event = new SessionCreatedEvent(session.SessionId);

            SessionCreated?.Invoke(@event);
        }
 public static void InvokeEvents(object sender, ABCTestDetailsModel e)
 {
     DisplaySession?.Invoke(sender, e);
     SessionCreated?.Invoke(sender, e);
     _sessionCreatedFlag = true;
 }
Esempio n. 7
0
 public void TriggerSessionCreated(IP2PSession session)
 {
     SessionCreated?.Invoke(this, new SessionEventArgs(session));
 }