Install-Package CoreAPIDirect
public void ConfigureServices(IServiceCollection services)
{
// Add with default options
services.AddCoreApiDirect();
// Add and configure options at once
services.AddCoreApiDirect(options =>
{
options.MaxPageSize = 25;
options.PageSize = 15;
});
// Configure options first and then add
services.Configure<CoreOptions>(options =>
{
options.MaxPageSize = 25;
options.PageSize = 15;
});
services.AddCoreApiDirect();
}
The documentation for the CoreAPIDirect library is located in this repo's wiki.