AzureCosmosDbCreateMfa Method

Creates a new mfa in the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<MfaConnectionDto> CreateMfa(
	MfaConnectionDto mfaConnection,
	AccountDto createdBy,
	string ipAddress,
	CancellationToken cancellationToken = default
)

Parameters

mfaConnection  MfaConnectionDto
Mfa connection to create
createdBy  AccountDto
User creating the environment
ipAddress  String
IP Address of the createdBy
cancellationToken  CancellationToken  (Optional)
Cancellation token (optional)

Return Value

TaskMfaConnectionDto
Cosmos DB Object-creation Task

Implements

IAzureCosmosDbCreateMfa(MfaConnectionDto, AccountDto, String, CancellationToken)

Exceptions

ArgumentNullExceptionThrown if mfaConnection or createdBy was
ArgumentExceptionThrown if ipAddress is IsNullOrWhiteSpace(String)
ResourceInvalidStateExceptionThrown if mfaConnection is in an invalid state.

See Also