Click or drag to resize

AuditExtensionsAudit Method (IAuditService, DateTimeOffset, ActionType, OutcomeIndicator, EventIdentifierType, AuditCode)

Creates a new IAuditBuilder instance tied to this service for dispatch.

Namespace:  SanteDB.Core.Security.Audit
Assembly:  SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax
public static IAuditBuilder Audit(
	this IAuditService service,
	DateTimeOffset timeStamp,
	ActionType actionCode,
	OutcomeIndicator outcome,
	EventIdentifierType eventIdentifier,
	AuditCode eventTypeCode
)

Parameters

service
Type: SanteDB.Core.Security.ServicesIAuditService
The service to use to build the audit
timeStamp
Type: SystemDateTimeOffset
The timestamp of the event
actionCode
Type: SanteDB.Core.Model.AuditActionType
The action type which classifies the audit action
outcome
Type: SanteDB.Core.Model.AuditOutcomeIndicator
The outcome of the audit
eventIdentifier
Type: SanteDB.Core.Model.AuditEventIdentifierType
The event identification
eventTypeCode
Type: SanteDB.Core.Model.AuditAuditCode
The event type

Return Value

Type: IAuditBuilder
The constructed audit builder

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAuditService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also