IUserDetailsService GetUserCountByTenantIds Method CelloSaaS API Documentation
Get user counts for tenant Identifiers.

Namespace: CelloSaaS.ServiceContracts.UserManagement
Assembly: CelloSaaS.ServiceContracts (in CelloSaaS.ServiceContracts.dll) Version: 4.3.1.0 (4.3.1.0)
Syntax

Dictionary<string, Dictionary<int, int>> GetUserCountByTenantIds(
	string[] tenantIds
)

Parameters

tenantIds
Type:  System String 
Tenant Identifiers(Mandatory)

Return Value

Type: Dictionary String, Dictionary Int32, Int32  
User details count and tenant Identifier
Exceptions

ExceptionCondition
System NotSupportedExceptionIf the service is for User Connection String DAL Provider
CelloSaaS.ServiceContracts.UserManagement UserDetailExceptionIf Any exception occurred, while connecting or modifying the database.
System ArgumentNullExceptionIf 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