Example #1
0
 private void OnP2PChannelClosed(Interface17 interface17_0, SessionClosedCause sessionClosedCause_0)
 {
     if (interface17_0.imethod_0())
     {
         P2PChannelState state = this.safeDictionary_0.Get(interface17_0.imethod_2());
         if (state != null)
         {
             this.safeDictionary_0.Remove(interface17_0.imethod_2());
             this.P2PChannelClosed(state);
         }
     }
 }
Example #2
0
 private void OnP2PChannelOpened(Interface17 interface17_0)
 {
     if (interface17_0.imethod_0())
     {
         P2PChannelState state = new P2PChannelState(interface17_0.imethod_2(), ProtocolType.UDP, new AgileIPE(interface17_0.imethod_1()), DateTime.Now, true, false)
         {
             Enabled = this.bool_2
         };
         bool flag = this.safeDictionary_0.Contains(interface17_0.imethod_2());
         this.safeDictionary_0.Add(interface17_0.imethod_2(), state);
         if (!flag)
         {
             this.P2PChannelOpened(state);
         }
     }
 }