It builds!

This commit is contained in:
Shannon
2020-10-23 14:18:53 +11:00
parent 1400a02798
commit 64d8b56eca
80 changed files with 601 additions and 2356 deletions

View File

@@ -0,0 +1,36 @@
using Umbraco.Core.Models.Membership;
using Umbraco.Web.Models.ContentEditing;
namespace Umbraco.Core.BackOffice
{
public class UserInviteEventArgs : IdentityAuditEventArgs
{
public UserInviteEventArgs(string ipAddress, int performingUser, UserInvite invitedUser, IUser localUser, string comment = null)
: base(AuditEvent.SendingUserInvite, ipAddress, performingUser, comment, localUser.Id, localUser.Name)
{
InvitedUser = invitedUser ?? throw new System.ArgumentNullException(nameof(invitedUser));
User = localUser;
}
/// <summary>
/// The model used to invite the user
/// </summary>
public UserInvite InvitedUser { get; }
/// <summary>
/// If event handler sets this to true it indicates that Umbraco will no try to send the invite itself
/// </summary>
public bool InviteHandled { get; set; }
/// <summary>
/// The local user that has been created that is pending the invite
/// </summary>
public IUser User { get; }
/// <summary>
/// if set to true will show the edit user button in the UI, else it will not be shown
/// </summary>
public bool ShowUserResult { get; set; }
}
}