tree: f768c0545b602f6273c09243f43828980787495c [path history] [tgz]
  1. Properties/
  2. Services/
  3. appsettings.json
  4. FlightAspServerExample.csproj
  5. Program.cs
  6. readme.md
csharp/examples/FlightAspServerExample/readme.md

Flight Asp Server Example

This example flight service stores uploaded Arrow tables in memory.

How this was created

First, create a new gRPC service (Flight is based on gRPC):

dotnet new grpc

Delete the example greeter service.

Then, implement a concrete subclass of FlightServer. See ./Services/InMemoryFlightServer.cs.

Finally, in ./Program.cs add the Flight server to the gRPC services and map the endpoints with the extension methods:

grpcBuilder.AddFlightServer<InMemoryFlightServer>();
...
app.MapFlightEndpoint();