This is an automated email from the ASF dual-hosted git repository. aaronai pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
commit e554ddb980290a4d7257a45353dfee85f49e8a2e Author: Aaron Ai <[email protected]> AuthorDate: Thu Mar 16 15:28:51 2023 +0800 Add more comments --- csharp/examples/ProducerBenchmark.cs | 2 ++ csharp/examples/ProducerDelayMessageExample.cs | 2 ++ csharp/examples/ProducerFifoMessageExample.cs | 2 ++ csharp/examples/ProducerNormalMessageExample.cs | 2 ++ csharp/examples/ProducerTransactionMessageExample.cs | 2 ++ csharp/examples/SimpleConsumerExample.cs | 2 ++ 6 files changed, 12 insertions(+) diff --git a/csharp/examples/ProducerBenchmark.cs b/csharp/examples/ProducerBenchmark.cs index f7de1c89..a379b8d2 100644 --- a/csharp/examples/ProducerBenchmark.cs +++ b/csharp/examples/ProducerBenchmark.cs @@ -77,6 +77,8 @@ namespace examples internal static async Task QuickStart() { + // Enable the switch if you use .NET Core 3.1. + // AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); const string accessKey = "yourAccessKey"; const string secretKey = "yourSecretKey"; diff --git a/csharp/examples/ProducerDelayMessageExample.cs b/csharp/examples/ProducerDelayMessageExample.cs index 5d905408..761ae7ca 100644 --- a/csharp/examples/ProducerDelayMessageExample.cs +++ b/csharp/examples/ProducerDelayMessageExample.cs @@ -29,6 +29,8 @@ namespace examples internal static async Task QuickStart() { + // Enable the switch if you use .NET Core 3.1. + // AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); const string accessKey = "yourAccessKey"; const string secretKey = "yourSecretKey"; diff --git a/csharp/examples/ProducerFifoMessageExample.cs b/csharp/examples/ProducerFifoMessageExample.cs index 0ce94ee3..f35ba94c 100644 --- a/csharp/examples/ProducerFifoMessageExample.cs +++ b/csharp/examples/ProducerFifoMessageExample.cs @@ -29,6 +29,8 @@ namespace examples internal static async Task QuickStart() { + // Enable the switch if you use .NET Core 3.1. + // AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); const string accessKey = "yourAccessKey"; const string secretKey = "yourSecretKey"; diff --git a/csharp/examples/ProducerNormalMessageExample.cs b/csharp/examples/ProducerNormalMessageExample.cs index 2598c739..890a2dc2 100644 --- a/csharp/examples/ProducerNormalMessageExample.cs +++ b/csharp/examples/ProducerNormalMessageExample.cs @@ -28,6 +28,8 @@ namespace examples internal static async Task QuickStart() { + // Enable the switch if you use .NET Core 3.1. + // AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); const string accessKey = "yourAccessKey"; const string secretKey = "yourSecretKey"; diff --git a/csharp/examples/ProducerTransactionMessageExample.cs b/csharp/examples/ProducerTransactionMessageExample.cs index dff74268..14f3da42 100644 --- a/csharp/examples/ProducerTransactionMessageExample.cs +++ b/csharp/examples/ProducerTransactionMessageExample.cs @@ -37,6 +37,8 @@ namespace examples internal static async Task QuickStart() { + // Enable the switch if you use .NET Core 3.1. + // AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); const string accessKey = "yourAccessKey"; const string secretKey = "yourSecretKey"; diff --git a/csharp/examples/SimpleConsumerExample.cs b/csharp/examples/SimpleConsumerExample.cs index 11dbedb0..e592e5ee 100644 --- a/csharp/examples/SimpleConsumerExample.cs +++ b/csharp/examples/SimpleConsumerExample.cs @@ -29,6 +29,8 @@ namespace examples internal static async Task QuickStart() { + // Enable the switch if you use .NET Core 3.1. + // AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true); const string accessKey = "yourAccessKey"; const string secretKey = "yourSecretKey";
