C#
Reference the generated Rails C# project in your solution and configure the client from the environment.
Install
Section titled “Install”The SDK README documents consuming the generated source from the repository:
git clone git@github.com:railsinfra/rails-csharp.gitdotnet add reference rails-csharp/src/RailsAdjust paths if you vendor the repo inside your monorepo layout.
Requirements
Section titled “Requirements”.NET Standard 2.0 or later (per README).
Client from the environment
Section titled “Client from the environment”RailsClient with no arguments is configured from RAILS_API_KEY and RAILS_BASE_URL, as described in the README’s configuration table.
See the examples directory in rails-sdks/rails-csharp/ for runnable programs.
API shapes and snippets
Section titled “API shapes and snippets”Use the API Reference tab for HTTP details and examples that track the generated surface.
Runnable sample
Section titled “Runnable sample”Follow Path A on the Quick start overview and use rails-sdk-samples/csharp/ when you want a sample server with OpenAPI first.