Пример #1
0
 private static void createitem(e_chromosome chromosome, string password)
 {
     myservice <q_getusertoken> .dbserverinfo.Upsert(new s2serverinfo()
     {
         id       = (int)chromosome,
         password = password
     });
 }
Пример #2
0
        public static async Task <bool> serverlogin(e_chromosome chromosome, string password)
        {
            var dv = await question(new q_getservertoken()
            {
                chromosome = chromosome,
                password   = password
            }) as q_getservertoken.done;

            if (dv == null)
            {
                return(false);
            }
            s.dbuserlogin.Upsert(new userlogin()
            {
                token   = dv.token,
                general = false,
                id      = (int)chromosome,
            });
            return(true);
        }
Пример #3
0
        public static async void add(e_chromosome chromosome, long userid, Action sync)
        {
            notifier dv = await get(chromosome.ToString(), userid);

            dv.sync += sync;
        }
Пример #4
0
 public clientspeed(e_chromosome chromosome) : base(byteid.clientspeed, chromosome.ToString(), 0, false)
 {
     outer = new timeout(1000, expired);
     runing();
 }