An open API service indexing awesome lists of open source software.

https://github.com/yuhima03/dotnet-traq

⚠️ Community Driven ⚠️ .NET client library for the traQ API.
https://github.com/yuhima03/dotnet-traq

dotnet traq

Last synced: 4 months ago
JSON representation

⚠️ Community Driven ⚠️ .NET client library for the traQ API.

Awesome Lists containing this project

README

        

# dotnet-traq

Dotnet client library for the traQ API.

## How to Use

### Use in Generic Host

An extension method for the `IServiceCollection` type can be used.

In this case, a singleton instance of the `ITraqApiClient` type is provided by an `IServiceProvider` instance.

```cs
var host = Host.CreateDefaultApplication()
.ConfigureServices(services =>
{
services.AddTraqApiClient(option =>
{
option.BaseAddress = Environment.GetEnvironmentVariable("TRAQ_BASE_ADDRESS");
option.BearerAuthToken = Environment.GetEnvironmentVariable("TRAQ_ACCESS_TOKEN");
});
})
.Build();

host.Run();
```