Manages security incidents.
Creates a new instance of SecurityIncidentManager.
public Void SecurityIncidentManager(auditingConnection, currentPrincipal, currentTenantId)
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. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when auditingConnection is null. -or- When currentPrincipal is null. |
An IDbAccess interface for Auditing.
public IDbAccess AuditingConnection { get; }
A ClaimsPrincipal representing the current user.
public ClaimsPrincipal CurrentPrincipal { get; }
Identification of the current Tenant.
public Int32 CurrentTenantId { get; }
Resolves a SecurityIncident.
public Task ResolveAsync(resolution)
Name | Type | Summary |
---|---|---|
resolution | SecurityIncidentResolution | Security incident resolution data. |
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. |
In this document