Skip to content

Commit ed4481f

Browse files
Merge pull request #259297 from vicancy/patch-9
Update howto-create-serviceclient-with-net-and-azure-identity.md
2 parents 7f7b0d5 + 546a18f commit ed4481f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

articles/azure-web-pubsub/howto-create-serviceclient-with-net-and-azure-identity.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,21 @@ This how-to guide shows you how to create a `WebPubSubServiceClient` using Micro
1818
- Install [Azure.Identity](https://www.nuget.org/packages/Azure.Identity) from nuget.org.
1919

2020
```bash
21-
Install-Package Azure.Identity
21+
dotnet add package Azure.Identity
2222
```
2323

2424
- Install [Azure.Messaging.WebPubSub](https://www.nuget.org/packages/Azure.Messaging.WebPubSub) from nuget.org
2525

2626
```bash
27-
Install-Package Azure.Messaging.WebPubSub
27+
dotnet add package Azure.Messaging.WebPubSub
2828
```
2929

30+
- If using DependencyInjection, install [Microsoft.Extensions.Azure](https://www.nuget.org/packages/Microsoft.Extensions.Azure) from nuget.org
31+
32+
```bash
33+
dotnet add package Microsoft.Extensions.Azure
34+
```
35+
3036
## Sample codes
3137

3238
1. Create a `TokenCredential` with Azure Identity SDK.

0 commit comments

Comments
 (0)