private void CreateLogEntry(ActivityLogEntry entry)
 {
     try
     {
         _activityManager.Create(entry);
     }
     catch
     {
         // Logged at lower levels
     }
 }
 private async void CreateLogEntry(ActivityLogEntry entry)
 {
     try
     {
         await _activityManager.Create(entry).ConfigureAwait(false);
     }
     catch
     {
         // Logged at lower levels
     }
 }
 private void LogDownload(BaseItem item, User user, AuthorizationInfo auth)
 {
     try
     {
         _activityManager.Create(new ActivityLogEntry
         {
             Name          = string.Format(_localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Name, item.Name),
             Type          = "UserDownloadingContent",
             ShortOverview = string.Format(_localization.GetLocalizedString("AppDeviceValues"), auth.Client, auth.Device),
             UserId        = auth.UserId
         });
     }
     catch
     {
         // Logged at lower levels
     }
 }
Exemple #4
0
 private void LogDownload(BaseItem item, User user, AuthorizationInfo auth)
 {
     try
     {
         _activityManager.Create(new ActivityLog(
                                     string.Format(CultureInfo.InvariantCulture, _localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Username, item.Name),
                                     "UserDownloadingContent",
                                     auth.UserId)
         {
             ShortOverview = string.Format(CultureInfo.InvariantCulture, _localization.GetLocalizedString("AppDeviceValues"), auth.Client, auth.Device),
         });
     }
     catch
     {
         // Logged at lower levels
     }
 }
Exemple #5
0
 private void CreateLogEntry(ActivityLogEntry entry)
 => _activityManager.Create(entry);