mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Document UserDeletedLogger
This commit is contained in:
parent
665f58dfbd
commit
4d18dbf9de
@ -9,17 +9,26 @@ using MediaBrowser.Model.Globalization;
|
|||||||
|
|
||||||
namespace Jellyfin.Server.Implementations.Events.Consumers.Users
|
namespace Jellyfin.Server.Implementations.Events.Consumers.Users
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Adds an entry to the activity log when a user is deleted.
|
||||||
|
/// </summary>
|
||||||
public class UserDeletedLogger : IEventConsumer<UserDeletedEventArgs>
|
public class UserDeletedLogger : IEventConsumer<UserDeletedEventArgs>
|
||||||
{
|
{
|
||||||
private readonly ILocalizationManager _localizationManager;
|
private readonly ILocalizationManager _localizationManager;
|
||||||
private readonly IActivityManager _activityManager;
|
private readonly IActivityManager _activityManager;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the <see cref="UserDeletedLogger"/> class.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="localizationManager">The localization manager.</param>
|
||||||
|
/// <param name="activityManager">The activity manager.</param>
|
||||||
public UserDeletedLogger(ILocalizationManager localizationManager, IActivityManager activityManager)
|
public UserDeletedLogger(ILocalizationManager localizationManager, IActivityManager activityManager)
|
||||||
{
|
{
|
||||||
_localizationManager = localizationManager;
|
_localizationManager = localizationManager;
|
||||||
_activityManager = activityManager;
|
_activityManager = activityManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
public async Task OnEvent(UserDeletedEventArgs eventArgs)
|
public async Task OnEvent(UserDeletedEventArgs eventArgs)
|
||||||
{
|
{
|
||||||
await _activityManager.CreateAsync(new ActivityLog(
|
await _activityManager.CreateAsync(new ActivityLog(
|
||||||
|
Loading…
Reference in New Issue
Block a user