IAzureCosmosDbLogUserEventT(UserSessionData, EventId, T, IIdLabel, CancellationToken) Method
Logs an event caused by a user. (e.g. a user creating or deleting an object)
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task LogUserEvent<T>(
UserSessionData user,
EventId userEvent,
T impactedObject,
IIdLabel? snapShotResource = null,
CancellationToken cancellationToken = default
)
where T : IIdLabel, IHasCompany
- 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
- T
- Object type impactedObject is based on.
TaskLog creation
Task