Beispiel #1
0
        public static async Task gRPCTest()
        {
            System.Console.WriteLine("Retrieving gRPC weather forecast info...");
            AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);

            // Allow http: This switch must be set before creating the GrpcChannel/HttpClient. https://docs.microsoft.com/en-us/aspnet/core/grpc/troubleshoot?view=aspnetcore-3.1#call-insecure-grpc-services-with-net-core-client
            var channel = GrpcChannel.ForAddress("https://*****:*****@reply}");
        }