diff --git a/src/ReC.Client/ReCClient.cs b/src/ReC.Client/ReCClient.cs index 795bb00..59218e8 100644 --- a/src/ReC.Client/ReCClient.cs +++ b/src/ReC.Client/ReCClient.cs @@ -102,8 +102,7 @@ namespace ReC.Client if (Provider == null) throw new InvalidOperationException("Static Provider is not built. Call BuildStaticClient first."); - var httpClientFactory = Provider.GetRequiredService(); - return new ReCClient(httpClientFactory); + return Provider.GetRequiredService(); } #endregion }