IAzureCosmosDbLogUserEvent(UserSessionData, EventId, IIdLabel, Guid, IIdLabel, CancellationToken) Method

Logs an event caused by a user. (e.g. a user creating or deleting an object)

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task LogUserEvent(
	UserSessionData user,
	EventId userEvent,
	IIdLabel impactedObject,
	Guid impactedObjectCompanyId,
	IIdLabel? snapShotResource = null,
	CancellationToken cancellationToken = default
)

Parameters

user  UserSessionData
User causing the event
userEvent  EventId
Invoked event
impactedObject  IIdLabel
Object that was impacted by the event (e.g. the newly created object)
impactedObjectCompanyId  Guid
Company the impactedObject belongs to.
snapShotResource  IIdLabel  (Optional)
Snapshot resource
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

Task
Log creation Task

See Also