CSharpRTMP.Core.Protocols.Rtmfp.HandShake.Manage C# (CSharp) Method

Manage() public method

public Manage ( ) : void
return void
        public override void Manage()
        {
            foreach (var cookie in _cookies.ToArray().Where(cookie => cookie.Value!=null && cookie.Value.Obsolete()))
            {
                EraseHelloAttempt(cookie.Value.Tag);
                _cookies.Remove(cookie.Key);
            }
        }
    }

Usage Example

Beispiel #1
0
 public void Manage()
 {
     HandShakeSession.Manage();
     foreach (var sessionKey in Sessions.Keys.ToArray())
     {
         Sessions[sessionKey].Manage();
         if (Sessions[sessionKey].IsEnqueueForDelete)
         {
             Sessions.Remove(sessionKey);
         }
     }
 }