C# Class Frapid.ApplicationState.Cache.AppUsers

显示文件 Open project: frapid/frapid

Public Methods

Method Description
GetCurrent ( string tenant = "" ) : LoginView
GetCurrent ( string tenant, long loginId ) : LoginView
GetCurrentAsync ( string tenant = "" ) : Task
GetCurrentAsync ( string tenant, long loginId ) : Task
GetMetaLoginAsync ( string database, long loginId ) : Task
GetTenant ( ) : string
SetCurrentLoginAsync ( HttpContext context, string tenant ) : Task
SetCurrentLoginAsync ( string tenant, long loginId ) : Task

Private Methods

Method Description
GetDictionary ( string database, LoginView metaLogin ) : object>.Dictionary
UpdateActivityAsync ( string tenant, int userId, string ip, string browser ) : Task

Method Details

GetCurrent() public static method

public static GetCurrent ( string tenant = "" ) : LoginView
tenant string
return Frapid.ApplicationState.Models.LoginView

GetCurrent() public static method

public static GetCurrent ( string tenant, long loginId ) : LoginView
tenant string
loginId long
return Frapid.ApplicationState.Models.LoginView

GetCurrentAsync() public static method

public static GetCurrentAsync ( string tenant = "" ) : Task
tenant string
return Task

GetCurrentAsync() public static method

public static GetCurrentAsync ( string tenant, long loginId ) : Task
tenant string
loginId long
return Task

GetMetaLoginAsync() public static method

public static GetMetaLoginAsync ( string database, long loginId ) : Task
database string
loginId long
return Task

GetTenant() public static method

public static GetTenant ( ) : string
return string

SetCurrentLoginAsync() public static method

public static SetCurrentLoginAsync ( HttpContext context, string tenant ) : Task
context System.Web.HttpContext
tenant string
return Task

SetCurrentLoginAsync() public static method

public static SetCurrentLoginAsync ( string tenant, long loginId ) : Task
tenant string
loginId long
return Task