Skip to content

Instantly share code, notes, and snippets.

@gistlyn gistlyn/Program.fs

Last active Dec 28, 2019
What would you like to do?
Insecure F# gRPC Generic ServiceClient TodoWorld Example
open System
open System.Threading
open System.Threading.Tasks
open ServiceStack
open TodoWorld.ServiceModel
open FSharp.Control.Tasks.V2
let todo () =
task {
ProtoBuf.Grpc.Client.GrpcClientFactory.AllowUnencryptedHttp2 <- true
let client = new GrpcServiceClient("")
let! response = client.GetAsync(new Hello(Name = "gRPC F#"))
printfn "%s" response.Result
let main argv =
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.