C# client for the Gengo translation service API - https://gengo.com/
IGengoConfigV2 config = new GengoConfigV2
{
Key = "key",
Secret = "secret"
};
ServiceCollection services = new ServiceCollection();
services.AddGengoClientV2(config, options => options.BaseAddress = new Uri("http://api.gengo.com/"));
IServiceProvider provider = services.BuildServiceProvider();
IGengoClientV2 client = provider.GetRequiredService<IGengoClientV2>();
IGengoConfigV2 config = new GengoConfigV2
{
Key = "key",
Secret = "secret"
};
var handler = new GengoHandlerV2(config)
{
InnerHandler = new HttpClientHandler()
};
var httpClient = new HttpClient(handler)
{
BaseAddress = new Uri("http://api.gengo.com/")
};
IGengoClientV2 client = new GengoClientV2(httpClient);