Click or drag to resize

CacheControllerCreateUserIdentityAndRefreshCache Method

The method creates an AppIdentity for a given user and assigns it to the thread. Afterwards it refreshes the cache. The method is intended to be used by windows and cmd-line apps that utilize the system APIs. The method can be called without an AppIdentity on the thread. The method validates that the specified username is valid for the specified customer. Throws an exception if the customer name and/or username is invalid.

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public static AppIdentity CreateUserIdentityAndRefreshCache(
	string customerName,
	string userName
)

Parameters

customerName
Type: SystemString
CaseINsensitive name of customer.
userName
Type: SystemString
CaseINsensitive username.

Return Value

Type: AppIdentity
See Also