Zum Hauptinhalt springen

UserInfoCache

Namespace: Meshmakers.Octo.Sdk.ServiceClient.Authorization

Implementation of the user info cache.

public class UserInfoCache : IUserInfoCache

Inheritance Object → UserInfoCache
Implements IUserInfoCache

Constructors​

UserInfoCache(IMemoryCache, IAuthorizationClient)​

Constructor

public UserInfoCache(IMemoryCache cache, IAuthorizationClient authorizationClient)

Parameters​

cache IMemoryCache
Memory cache

authorizationClient IAuthorizationClient
Authorization client

Methods​

GetUserInfoAsync(String)​

public Task<UserInfoData> GetUserInfoAsync(string accessToken)

Parameters​

accessToken String

Returns​

Task<UserInfoData>