private void handleGetTokenSubType(List <User> users, List <IClientConnectionController> clientConnectionControllers, ClientMessage message) { // set token to GUID and let user know var connection = clientConnectionControllers.FirstOrDefault(controller => controller.Token == message.Token); if (connection != null) { string newToken = connection.CreateToken(); sendService.SendSyncToClient(connection.Socket, new ServerMessage { Type = Message.MessageType.Meta, SubType = "token", Text = newToken }); } }