public RemoteTokenManager(IRemoteToken remoteToken, ITokenResponseHandler tokenResponseHandler) { _lock = new SemaphoreSlim(1, 1); _token = null; _tokenExpiration = null; _remoteToken = remoteToken; _tokenResponseHandler = tokenResponseHandler; _tokenResponseHandler.SetRemoteTokenOptions(_remoteToken.Options); }
public HttpClient GetHttpClient(IRemoteToken remoteToken, HttpMessageHandler handler) { ITokenManager tokenManager = new RemoteTokenManager(remoteToken); return(GetHttpClient(tokenManager, handler)); }
public RemoteTokenManager(IRemoteToken remoteToken) : this(remoteToken, new TokenResponseHandler()) { }
public HttpClient GetHttpClient(IRemoteToken remoteToken) { ITokenManager tokenManager = new RemoteTokenManager(remoteToken); return(GetHttpClient(tokenManager)); }