SecurityIncidentManager

Manages security incidents.

Namespace:
Inetdev.Auditing
Type:
Class
Public:
Yes
Protected:
No
Sealed:
Yes
Abstract:
No
Inherits from:
System.Object

Constructors

SecurityIncidentManager

Creates a new instance of SecurityIncidentManager.

Signature:
public Void SecurityIncidentManager(auditingConnection, currentPrincipal, currentTenantId)
Parameters
Name Type Summary
auditingConnection IDbAccess An IDbAccess interface for Auditing.
currentPrincipal ClaimsPrincipal A ClaimsPrincipal representing the current user.
currentTenantId Int32 Identification of the current Tenant.
Exceptions
Type Summary
ArgumentNullException

Thrown when auditingConnection is null.

-or-

When currentPrincipal is null.

Properties

AuditingConnection

An IDbAccess interface for Auditing.

Signature:
public IDbAccess AuditingConnection { get; }

CurrentPrincipal

A ClaimsPrincipal representing the current user.

Signature:
public ClaimsPrincipal CurrentPrincipal { get; }

CurrentTenantId

Identification of the current Tenant.

Signature:
public Int32 CurrentTenantId { get; }

Methods

ResolveAsync

Resolves a SecurityIncident.

Signature:
public Task ResolveAsync(resolution)
Parameters
Name Type Summary
resolution SecurityIncidentResolution Security incident resolution data.
Exceptions
Type Summary
ArgumentNullException Thrown when resolution is null.
ValidationException Thrown when the resolution model has invalid data.
SecurityIncidentNotFoundException Thrown when the security incident is not found.
AuditNotFoundException Thrown when a related audit record couldn't be found.