Пример #1
0
 static int Stop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         TGNetService obj = (TGNetService)ToLua.CheckObject(L, 1, typeof(TGNetService));
         obj.Stop();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
 public static TGNetService NewInstance()
 {
     instance.Stop();
     instance = new TGNetService();
     return(instance);
 }