Show / Hide Table of Contents

Class UserCache<TUser>

Inheritance
System.Object
UserCache<TUser>
Namespace:InfinniPlatform.Auth.UserCache
Assembly:InfinniPlatform.Auth.dll
Syntax
public class UserCache<TUser> : object, IUserCacheObserver where TUser : AppUser
Type Parameters
Name Description
TUser

Constructors

| Improve this Doc View Source

UserCache(AuthOptions, ILogger<UserCache<TUser>>, IBroadcastProducer, AppOptions)

Declaration
public UserCache(AuthOptions options, ILogger<UserCache<TUser>> logger, IBroadcastProducer broadcastProducer, AppOptions appOptions)
Parameters
Type Name Description
AuthOptions options
ILogger<UserCache<TUser>> logger
IBroadcastProducer broadcastProducer
AppOptions appOptions

Methods

| Improve this Doc View Source

AddOrUpdateUser(TUser)

Добавляет или обновляет сведения о пользователе системы.

Declaration
public void AddOrUpdateUser(TUser user)
Parameters
Type Name Description
TUser user

Сведения о пользователе системы.

| Improve this Doc View Source

FindUserByEmail(String)

Возвращает сведения о пользователе системы по его электронной почте.

Declaration
public TUser FindUserByEmail(string email)
Parameters
Type Name Description
System.String email

Электронная почта пользователя.

Returns
Type Description
TUser

Сведения о пользователе системы.

| Improve this Doc View Source

FindUserById(String)

Возвращает сведения о пользователе системы по его идентификатору.

Declaration
public TUser FindUserById(string userId)
Parameters
Type Name Description
System.String userId

Уникальный идентификатор пользователя.

Returns
Type Description
TUser

Сведения о пользователе системы.

| Improve this Doc View Source

FindUserByLogin(String, String)

Возвращает сведения о пользователе системы по его имени у внешнего провайдера.

Declaration
public TUser FindUserByLogin(string loginProvider, string providerKey)
Parameters
Type Name Description
System.String loginProvider

Внешний провайдер.

System.String providerKey

Ключ внешнего провайдера.

Returns
Type Description
TUser

Сведения о пользователе системы.

| Improve this Doc View Source

FindUserByPhoneNumber(String)

Возвращает сведения о пользователе системы по его номеру телефона.

Declaration
public TUser FindUserByPhoneNumber(string phoneNumber)
Parameters
Type Name Description
System.String phoneNumber

Номер телефона пользователя.

Returns
Type Description
TUser

Сведения о пользователе системы.

| Improve this Doc View Source

FindUserByUserName(String)

Возвращает сведения о пользователе системы по его имени.

Declaration
public TUser FindUserByUserName(string userName)
Parameters
Type Name Description
System.String userName

Имя пользователя.

Returns
Type Description
TUser

Сведения о пользователе системы.

| Improve this Doc View Source

ProcessMessage(Message<String>)

Declaration
public Task ProcessMessage(Message<string> message)
Parameters
Type Name Description
Message<System.String> message
Returns
Type Description
Task
| Improve this Doc View Source

RemoveUser(String)

Удаляет сведения о пользователе системы.

Declaration
public void RemoveUser(string userId)
Parameters
Type Name Description
System.String userId

Уникальный идентификатор пользователе системы.

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.