This example flight service stores uploaded Arrow tables in memory.
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();