Skip to content

Commit 664e6eb

Browse files
committed
Updated TypedRest
1 parent bfdc10a commit 664e6eb

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/Client/Client.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<ProjectReference Include="..\Model\Model.csproj" />
4141
</ItemGroup>
4242
<ItemGroup>
43-
<PackageReference Include="TypedRest.Reactive" Version="1.3.3" />
43+
<PackageReference Include="TypedRest.Reactive" Version="1.3.4" />
4444
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
4545
</ItemGroup>
4646

src/Client/OpenServiceBrokerClient.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using OpenServiceBroker.Instances;
77
using TypedRest.Endpoints;
88
using TypedRest.Endpoints.Generic;
9+
using TypedRest.Http;
910

1011
namespace OpenServiceBroker
1112
{
@@ -30,9 +31,10 @@ public OpenServiceBrokerClient(HttpClient httpClient, Uri uri)
3031
/// </summary>
3132
/// <param name="uri">The base URI of the Open Service Broker API instance (without the version number).</param>
3233
/// <param name="credentials">Optional HTTP Basic Auth credentials used to authenticate against the REST interface.</param>
33-
public OpenServiceBrokerClient(Uri uri, ICredentials? credentials = null)
34-
: base(uri, credentials, errorHandler: new OpenServiceBrokerErrorHandler())
34+
public OpenServiceBrokerClient(Uri uri, NetworkCredential? credentials = null)
35+
: base(uri, errorHandler: new OpenServiceBrokerErrorHandler())
3536
{
37+
if (credentials != null) HttpClient.AddBasicAuth(credentials);
3638
SetApiVersion(DefaultApiVersion);
3739
}
3840

0 commit comments

Comments
 (0)