コード例 #1
0
 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");
     }
 }
コード例 #2
0
 public void LicensedHandler(GameSession session, CLicensedReqMessage message)
 {
     try
     {
         session.Player.LicenseManager.Acquire(message.License);
     }
     catch (LicenseNotFoundException ex)
     {
         _logger.Error()
         .Account(session)
         .Exception(ex)
         .Write();
     }
 }