Skip to content

Commit 29eaeea

Browse files
backend service hub client: use modern connection only
1 parent d6b7ca7 commit 29eaeea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Certify.Client/CertifyServiceClient.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public CertifyServiceClient(Providers.IServiceConfigProvider configProvider, Sha
3939

4040
public async Task ConnectStatusStreamAsync()
4141
{
42+
#if !NET9_0_OR_GREATER
4243
if (_connectionConfig.ServerMode == "v1")
4344
{
4445
// older signalr client/server
@@ -69,6 +70,7 @@ public async Task ConnectStatusStreamAsync()
6970

7071
}
7172
else
73+
#endif
7274
{
7375
// newer signalr client/server
7476

@@ -92,6 +94,8 @@ public async Task ConnectStatusStreamAsync()
9294

9395
return message;
9496
};
97+
98+
opts.Credentials = System.Net.CredentialCache.DefaultCredentials;
9599
})
96100
.WithAutomaticReconnect()
97101
.AddMessagePackProtocol()

0 commit comments

Comments
 (0)