public async Task Connect() { await Task.Run(() => { Connected = serverService.Connect(); dataBaseService.Connect(); }); }
static ServerService() { dataBaseService.Connect(); }