IAzureCosmosDbLogException Method

Logs an exception

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task LogException(
	EventId exceptionEvent,
	Exception exception
)

Parameters

exceptionEvent  EventId
EventId of the Exception
exception  Exception
Exception that occurred.

Return Value

Task
Log creation Task

Remarks

No cancellation token is provided, as cancellation tokens are often cancelled during error handling, and we need to ensure the exception is logged regardless of the cancellation token state.

See Also