MobileTrack Nexus Documentation
C#
Show/Hide TOC
Azure
Cosmos
Db
Delete
Company Method
Deletes an entire company from the database;
AccountDto
's,
EnvironmentDto
's, the
CompanyDto
itself, etc.
Definition
Namespace:
MobileTrack.DataContainers.Cosmos
Assembly:
MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
C#
Copy
Request Example
public
Task
DeleteCompany
(
CompanyDto
company
,
UserSessionData
deletedBy
)
Parameters
company
CompanyDto
Company to delete
deletedBy
UserSessionData
User deleting the items
Return Value
Task
Task
completion
Implements
IAzureCosmosDb
DeleteCompany(CompanyDto, UserSessionData)
Remarks
This method does not utilise a
CancellationToken
since we cannot allow it to be disrupted, as it would ensure data would be left in the database that we don't want to be there anymore.
Exceptions
UnauthorizedAccessException
Thrown if the user
deletedBy
did not have the correct permissions
ArgumentNullException
Thrown if
company
or
deletedBy
was
See Also
Reference
AzureCosmosDb Class
MobileTrack.DataContainers.Cosmos Namespace
In This Article
Definition
Parameters
Return Value
Implements
Remarks
Exceptions
See Also