예제 #1
0
        public static async Task AddListener(IHasInternetListener l)
        {
            var m = Get(l);

            m.listeners.Add(l);
            await l.OnHasInternet(m.hasInet);
        }
예제 #2
0
 public static bool RemoveListener(IHasInternetListener l)
 {
     return(Instance(l).listeners.Remove(l));
 }
예제 #3
0
 public static void AddListener(IHasInternetListener l)
 {
     Instance(l).listeners.Add(l);
 }