/// <inheritdoc /> public virtual HttpClient CreateClient(string baseUrl, ILogger?logger = null) { var builder = new HttpClientBuilder().WithBaseUrl(baseUrl); if (logger != null) { builder.WithLogger(logger); } return(builder.Build()); }
/// <inheritdoc /> public virtual HttpClient CreateAuthClient( string baseUrl, ISessionContext sessionContext, ILogger?logger = null) { var builder = new HttpClientBuilder().WithBaseUrl(baseUrl); if (logger != null) { builder.WithLogger(logger); } builder.WithSessionContext(sessionContext); return(builder.Build()); }