diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/README.md b/sdk/eventgrid/Azure.Messaging.EventGrid/README.md index 0370e58b27ee..1cb5802ff2c7 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/README.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/README.md @@ -43,18 +43,18 @@ az eventgrid topic key list --name --resource-group ", + new Uri(""), new AzureKeyCredential("")); ``` You can also create a **Shared Access Signature** to authenticate the client using the same access key. The signature can be generated using the endpoint, access key, and the time at which the signature becomes invalid for authentication. Create the client using the `EventGridSharedAccessSignatureCredential` type: ```C# string sasToken = EventGridPublisherClient.BuildSharedAccessSignature( - "", + new Uri(""), DateTimeOffset.UtcNow.AddMinutes(60), new AzureKeyCredential("")); EventGridPublisherClient client = new EventGridPublisherClient( - "", + new Uri(""), new EventGridSharedAccessSignatureCredential(sasToken)); ```