Skip to content

BaseUserRetrieveService class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

Base user retrieve service that provides common functionality for user retrieve services.

public abstract class BaseUserRetrieveService : IRemoveAll, IRemoveCachedUser, IUserRetrieveService
parameter description
cache Cache

Public Members

name description
virtual ById(…)
virtual ByUsername(…)
virtual RemoveAll()
virtual RemoveCachedUser(…)

Protected Members

name description
BaseUserRetrieveService(…) Base user retrieve service that provides common functionality for user retrieve services.
virtual GetCachedById(…) Gets the cached user by the specified ID.
virtual GetCachedByUsername(…) Gets the cached user by the specified username.
virtual GetCacheDuration() Gets the cache duration for user retrieval. Default is zero, meaning it will be cached indefinitely unless expired by using the cache group key.
abstract GetCacheGroupKey() Gets the cache group key for user retrieval.
virtual GetIdCacheKey(…) Gets the cache key for the specified user ID.
virtual GetUsernameCacheKey(…) Gets the cache key for the specified username.
virtual IsValidUserId(…) Checks if the specified user ID is valid. By default, it checks if it is not null or empty.
virtual IsValidUsername(…) Checks if the specified username is valid. By default, it checks if it is not null or empty.
abstract LoadById(…) Loads the user by the specified ID from database.
abstract LoadByUsername(…) Loads the user by the specified username from database

See Also