Added a welcome notification

This commit is contained in:
Luke Pulverenti
2013-07-06 22:01:14 -04:00
parent 734f08f56d
commit e924efaa6f
3 changed files with 36 additions and 0 deletions

View File

@@ -303,6 +303,8 @@ namespace MediaBrowser.Server.Implementations.Library
OnUserUpdated(user);
}
public event EventHandler<GenericEventArgs<User>> UserCreated;
/// <summary>
/// Creates the user.
/// </summary>
@@ -330,6 +332,8 @@ namespace MediaBrowser.Server.Implementations.Library
await UserRepository.SaveUser(user, CancellationToken.None).ConfigureAwait(false);
EventHelper.QueueEventIfNotNull(UserCreated, this, new GenericEventArgs<User> { Argument = user }, _logger);
return user;
}
@@ -439,5 +443,7 @@ namespace MediaBrowser.Server.Implementations.Library
DateModified = DateTime.UtcNow
};
}
}
}