Initial version
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using EonaCat.DoxaApi.Generation;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace EonaCat.DoxaApi
|
||||
{
|
||||
public static class DoxaApiServiceCollectionExtensions
|
||||
{
|
||||
|
||||
public static IServiceCollection AddDoxaApi(this IServiceCollection services, Action<DoxaApiOptions>? configure = null)
|
||||
{
|
||||
var options = new DoxaApiOptions();
|
||||
configure?.Invoke(options);
|
||||
services.AddSingleton(options);
|
||||
return services;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user