Skip to content

Instantly share code, notes, and snippets.

@gistlyn gistlyn/Program.vb
Created Dec 28, 2019

What would you like to do?
Insecure VB.NET gRPC Generic ServiceClient TodoWorld Example
Imports System
Imports System.Collections.Generic
Imports System.Threading.Tasks
Imports System.Security.Cryptography.X509Certificates
Imports ServiceStack
Imports TodoWorld.ServiceModel
Module Program
Async Function Todo() As Task
ProtoBuf.Grpc.Client.GrpcClientFactory.AllowUnencryptedHttp2 = true
Dim client = new GrpcServiceClient("")
Dim response = Await client.GetAsync(New Hello With { .Name = "gRPC VB.NET" })
End Function
Sub Main(args As String())
End Sub
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.