AzureCosmosDbLogUserEventT(UserSessionData, EventId, T, 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.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task LogUserEvent<T>(
	UserSessionData user,
	EventId userEvent,
	T impactedObject,
	IIdLabel? snapShotResource = null,
	CancellationToken cancellationToken = default
)
where T : IIdLabel, IHasCompany

Parameters

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

Type Parameters

T
Object type impactedObject is based on.

Return Value

Task
Log creation Task

Implements

IAzureCosmosDbLogUserEventT(UserSessionData, EventId, T, IIdLabel, CancellationToken)

See Also