Get user counts for tenant Identifiers.
Namespace: CelloSaaS.ServiceContracts.UserManagementAssembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax
Parameters
- tenantIds
- Type: System String
Tenant Identifiers(Mandatory)
Return Value
Type: Dictionary String, Dictionary Int32, Int32User details count and tenant Identifier
Exceptions
Exception | Condition |
---|---|
System NotSupportedException | If the service is for User Connection String DAL Provider |
CelloSaaS.ServiceContracts.UserManagement UserDetailException | If Any exception occurred, while connecting or modifying the database. |
System ArgumentNullException | If the tenant ids is null or tenant ids count is zero |
Examples
public void GetUserCountByTenantIds() { Dictionary<string, Dictionary<int, int>> userDetailsCount = new Dictionary<string, Dictionary<int, int>>(); string[] tenantIds = new string {"B590CD25-3093-DF11-8DEB-001EC9DAB123", "C590CD25-3093-DF11-8DEB-001EC9DAB123" }; IUserDetailsService userDetailsService = (IUserDetailsService)ServiceLocator.GetServiceImplementation(typeof(IUserDetailsService)); userDetails = userDetailsService.GetUserCountByTenantIds(tenantIds); }
See Also