| 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
)
<ExtensionAttribute>
Public Shared Function Audit (
service As IAuditService,
timeStamp As DateTimeOffset,
actionCode As ActionType,
outcome As OutcomeIndicator,
eventIdentifier As EventIdentifierType,
eventTypeCode As AuditCode
) As IAuditBuilder
public:
[ExtensionAttribute]
static IAuditBuilder^ Audit(
IAuditService^ service,
DateTimeOffset timeStamp,
ActionType actionCode,
OutcomeIndicator outcome,
EventIdentifierType eventIdentifier,
AuditCode^ eventTypeCode
)
[<ExtensionAttribute>]
static member Audit :
service : IAuditService *
timeStamp : DateTimeOffset *
actionCode : ActionType *
outcome : OutcomeIndicator *
eventIdentifier : EventIdentifierType *
eventTypeCode : AuditCode -> IAuditBuilder
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:
IAuditBuilderThe 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