Click or drag to resize

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

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.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntax
public static IAuditBuilder Audit(
	this IAuditService service,
	DateTimeOffset timeStamp,
	ActionType actionCode,
	OutcomeIndicator outcome,
	EventIdentifierType eventIdentifier,
	AuditCode eventTypeCode
)

Parameters

service  IAuditService
The service to use to build the audit
timeStamp  DateTimeOffset
The timestamp of the event
actionCode  ActionType
The action type which classifies the audit action
outcome  OutcomeIndicator
The outcome of the audit
eventIdentifier  EventIdentifierType
The event identification
eventTypeCode  AuditCode
The event type

Return Value

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