IAzureCosmosDbLogBackgroundProcessEventT Method
Logs an event caused by automatic processes (e.g. a device event)
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
Task<LogDto> LogBackgroundProcessEvent<T>(
Guid processId,
EventId automaticEvent,
T impactedObject,
GeoLocation? location = null,
IIdLabel? snapShotResource = null,
CancellationToken cancellationToken = default
)
where T : IIdLabel, IHasCompany
- processId Guid
- ID of the LifeCycle of the process that is running this event.
- automaticEvent EventId
- Invoked event
- impactedObject T
- Object that was impacted by the event (e.g. the device itself)
- location NullableGeoLocation (Optional)
- (optional): Device location
- snapShotResource IIdLabel (Optional)
- Snapshot resource
- cancellationToken CancellationToken (Optional)
- Cancellation token
- T
- Business object impactedObject is based on.
TaskLogDtoLog creation
Task