Class IdentityAuditEventArgs
This class is used by events raised from the BackofficeUserManager
Inheritance
System.Object
System.EventArgs
Namespace: Umbraco.Web.Security
Assembly: Umbraco.Web.dll
Syntax
public class IdentityAuditEventArgs : EventArgs
Constructors
View SourceIdentityAuditEventArgs(AuditEvent, String, String, Int32, Int32)
Default constructor
Declaration
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, string comment = null, int performingUser = -1, int affectedUser = -1)
Parameters
Type | Name | Description |
---|---|---|
AuditEvent | action | |
System.String | ipAddress | |
System.String | comment | |
System.Int32 | performingUser | |
System.Int32 | affectedUser |
IdentityAuditEventArgs(AuditEvent, String, String, String)
Creates an instance without a performing or affected user (the id will be set to -1)
Declaration
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, string username, string comment)
Parameters
Type | Name | Description |
---|---|---|
AuditEvent | action | |
System.String | ipAddress | |
System.String | username | |
System.String | comment |
IdentityAuditEventArgs(AuditEvent, String, String, String, Int32)
Declaration
public IdentityAuditEventArgs(AuditEvent action, string ipAddress, string username, string comment, int performingUser)
Parameters
Type | Name | Description |
---|---|---|
AuditEvent | action | |
System.String | ipAddress | |
System.String | username | |
System.String | comment | |
System.Int32 | performingUser |
Properties
View SourceAction
The action that got triggered from the audit event
Declaration
public AuditEvent Action { get; }
Property Value
Type | Description |
---|---|
AuditEvent |
AffectedUser
The user affected by the event raised
Declaration
public int AffectedUser { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Comment
An optional comment about the action being logged
Declaration
public string Comment { get; }
Property Value
Type | Description |
---|---|
System.String |
DateTimeUtc
Current date/time in UTC format
Declaration
public DateTime DateTimeUtc { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
IpAddress
The source IP address of the user performing the action
Declaration
public string IpAddress { get; }
Property Value
Type | Description |
---|---|
System.String |
PerformingUser
If a user is performing an action on a different user, then this will be set. Otherwise it will be -1
Declaration
public int PerformingUser { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Username
This property is always empty except in the LoginFailed event for an unknown user trying to login
Declaration
public string Username { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceGetCurrentRequestBackofficeUserId()
Returns the current logged in backoffice user's Id logging if there is one
Declaration
protected int GetCurrentRequestBackofficeUserId()
Returns
Type | Description |
---|---|
System.Int32 |