private static void createitem(e_chromosome chromosome, string password) { myservice <q_getusertoken> .dbserverinfo.Upsert(new s2serverinfo() { id = (int)chromosome, password = password }); }
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); }
public static async void add(e_chromosome chromosome, long userid, Action sync) { notifier dv = await get(chromosome.ToString(), userid); dv.sync += sync; }
public clientspeed(e_chromosome chromosome) : base(byteid.clientspeed, chromosome.ToString(), 0, false) { outer = new timeout(1000, expired); runing(); }