public void LicensedHandler(GameSession session, CLicensedReqMessage message) { try { session.Player.LicenseManager.Acquire(message.License); } catch (LicenseNotFoundException ex) { Logger.ForAccount(session) .Error(ex, "Failed to acquire license"); } }
public void LicensedHandler(GameSession session, CLicensedReqMessage message) { try { session.Player.LicenseManager.Acquire(message.License); } catch (LicenseNotFoundException ex) { _logger.Error() .Account(session) .Exception(ex) .Write(); } }