From a8760944a08519edc0f74a33c396d5a6053de5e9 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 4 Feb 2018 22:23:23 +0100 Subject: Initial version. --- HelloApp/HelloApp.fsproj | 13 +++++++++++++ HelloApp/Program.fs | 12 ++++++++++++ HelloApp/README.md | 16 ++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 HelloApp/HelloApp.fsproj create mode 100644 HelloApp/Program.fs create mode 100644 HelloApp/README.md (limited to 'HelloApp') diff --git a/HelloApp/HelloApp.fsproj b/HelloApp/HelloApp.fsproj new file mode 100644 index 0000000..54be4a7 --- /dev/null +++ b/HelloApp/HelloApp.fsproj @@ -0,0 +1,13 @@ + + + Exe + netcoreapp2.0 + + + + + + + + + \ No newline at end of file diff --git a/HelloApp/Program.fs b/HelloApp/Program.fs new file mode 100644 index 0000000..cbb161d --- /dev/null +++ b/HelloApp/Program.fs @@ -0,0 +1,12 @@ +open HelloLib + +[] +let main argv = + let server = Greeting.Serve () + let client = Greeting.MakeClient () + + client.SayHelloAsync(new HelloNet.Api.HelloRequest(Greetee = "world")).ResponseAsync.Wait() + + server.ShutdownAsync().Wait() + + 0 diff --git a/HelloApp/README.md b/HelloApp/README.md new file mode 100644 index 0000000..0b1f71a --- /dev/null +++ b/HelloApp/README.md @@ -0,0 +1,16 @@ +# About + +This project demonstrates how to build a gRPC service with F# on .NET +Core 2.0. + +# How to Build + +```sh +dotnet build +``` + +# How to Run + +```sh +dotnet HelloApp/bin/Debug/netcoreapp2.0/HelloApp.dll +``` -- cgit v1.2.3