IAzureCosmosDbLogBackgroundProcessEventT Method

Logs an event caused by automatic processes (e.g. a device event)

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: 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

Parameters

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

Type Parameters

T
Business object impactedObject is based on.

Return Value

TaskLogDto
Log creation Task

See Also