AzureCosmosDbLogBackgroundProcessEventT Method
Generates a log for events inside background processes, e.g. the Event Handler or Device Receiver. (not the portal or API!).
Namespace: MobileTrack.DataContainers.CosmosAssembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<LogDto> LogBackgroundProcessEvent<T>(
Guid processId,
EventId automaticEvent,
T impactedObject,
GeoLocation? location,
IIdLabel? snapShotResource,
CancellationToken cancellationToken
)
where T : IIdLabel, IHasCompany
- processId Guid
- The ID of the lifecycle of the process executing this task.
- automaticEvent EventId
- Invoked event
- impactedObject T
- Object being impacted
- location NullableGeoLocation
- The location on the map where the event took place (only relevant for the device receiver)
- snapShotResource IIdLabel
- A snapshot of the resource.
- cancellationToken CancellationToken
- Cancellation token
- T
- Business object we're working with (must be composed of at least IIdLabel and IHasCompany)
TaskLogDtoGenerated log.
IAzureCosmosDbLogBackgroundProcessEventT(Guid, EventId, T, NullableGeoLocation, IIdLabel, CancellationToken)