From 3169a41c5aff2e67ae586d81ab529c01cdda3e85 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 23 Jun 2021 09:11:15 -0700 Subject: [PATCH] Fix links in snippets 2 --- .../README.md | 2 +- .../Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md | 2 +- .../tests/Samples/Sample01_ReadmeSnippets.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md b/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md index 0f75b12e4270..2a75a769509c 100644 --- a/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md +++ b/sdk/eventgrid/Microsoft.Azure.Messaging.EventGrid.CloudNativeCloudEvents/README.md @@ -54,7 +54,7 @@ EventGridPublisherClient client = new EventGridPublisherClient( new AzureKeyCredential(TestEnvironment.CloudEventTopicKey)); var cloudEvent = - new CloudEvent + new CloudEvent { Type = "record", Source = new Uri("http://www.contoso.com"), diff --git a/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md b/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md index a574180a3fb8..7e6fcba01976 100644 --- a/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md +++ b/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/README.md @@ -44,7 +44,7 @@ Once you have the Azure resource credentials and the Event Hubs namespace hostna ```C# Snippet:SchemaRegistryAvroCreateSchemaRegistryClient // Create a new SchemaRegistry client using the default credential from Azure.Identity using environment variables previously set, // including AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID. -// For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md +// For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md var schemaRegistryClient = new SchemaRegistryClient(endpoint: endpoint, credential: new DefaultAzureCredential()); ``` diff --git a/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/tests/Samples/Sample01_ReadmeSnippets.cs b/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/tests/Samples/Sample01_ReadmeSnippets.cs index be79dccd589d..2e14b6b279c4 100644 --- a/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/tests/Samples/Sample01_ReadmeSnippets.cs +++ b/sdk/schemaregistry/Microsoft.Azure.Data.SchemaRegistry.ApacheAvro/tests/Samples/Sample01_ReadmeSnippets.cs @@ -26,7 +26,7 @@ public void CreateSchemaRegistryClient() #region Snippet:SchemaRegistryAvroCreateSchemaRegistryClient // Create a new SchemaRegistry client using the default credential from Azure.Identity using environment variables previously set, // including AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID. - // For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/identity/Azure.Identity/README.md + // For more information on Azure.Identity usage, see: https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/README.md var schemaRegistryClient = new SchemaRegistryClient(endpoint: endpoint, credential: new DefaultAzureCredential()); #endregion