private static bool handleApplications(ClientSession session) { DatabaseQuerier db = new DatabaseQuerier(con); ApplicationsResponse resp = new ApplicationsResponse(db.getApplications(session.loginUsername.name)); byte[] payLoad = MessageUtils.SerializeMessage(resp).GetAwaiter().GetResult(); session.Client.Client.Send(payLoad); return(true); }
static MessageHandler() { con = databaseInitializer.makeConnection(); db = new DatabaseQuerier(con); }