AzureCosmosDbUpdateOrCreateActionFlowDefinition Method

Update or Creates a action flow in the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task UpdateOrCreateActionFlowDefinition(
	ActionFlowDefinitionDto actionFlow,
	UserSessionData createdBy,
	CancellationToken cancellationToken = default
)

Parameters

actionFlow  ActionFlowDefinitionDto
Original action flow
createdBy  UserSessionData
User creating the action flow
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

Task
Cosmos DB Object-creation Task

Implements

IAzureCosmosDbUpdateOrCreateActionFlowDefinition(ActionFlowDefinitionDto, UserSessionData, CancellationToken)

Exceptions

UnauthorizedAccessExceptionThrown if the user createdBy did not have the correct permissions
ArgumentNullExceptionThrown if actionFlow or createdBy are
ResourceInvalidStateExceptionThrown if actionFlow is in an invalid state.

See Also