> For the complete documentation index, see [llms.txt](https://bogdanfinn.gitbook.io/open-source-oasis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bogdanfinn.gitbook.io/open-source-oasis/shared-library/c/examples.md).

# Examples

Please take a look at the following C# code in the repository to see examples implemented: `cffi_dist/example_csharp/`

`Requester.cs` shows loading and defining the shared library, plus a small session wrapper class.

`Example.csproj` is a runnable console project (`dotnet run -- <topic>`) with a short, focused example per topic:

* `basic` - GET Request
* `post` - POST Request
* `cookies` - Use Cookies
* `custom_client` - Custom Client
* `proxy` - Proxy Rotation
* `redirects` - Switching the Redirect Following Behavior
* `pinning` - Certificate Pinning
* `download` - Image Download

Adjust `LibraryPath` in `TlsClientLibrary.cs` to point at the shared library you downloaded for your OS/arch/version before running.
