public static long GenerateId() { long time = TimeHelper.ClientNowSeconds(); return (AppId << 48) + (time << 16) + ++value; } }
protected AChannel(AService service) { this.Id = IdGenerater.GenerateId(); this.service = service; }