2021-11-22 14:29:22 +01:00
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
namespace zero;
|
|
|
|
|
|
2021-12-12 15:41:51 +01:00
|
|
|
public static class ServiceCollectionExtensions
|
2021-11-22 14:29:22 +01:00
|
|
|
{
|
|
|
|
|
public static ZeroBuilder AddZero(this IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
{
|
|
|
|
|
return new ZeroBuilder(services, configuration, null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static ZeroBuilder AddZero(this IServiceCollection services, IConfiguration configuration, Action<IZeroStartupOptions> setupAction)
|
|
|
|
|
{
|
|
|
|
|
return new ZeroBuilder(services, configuration, setupAction);
|
|
|
|
|
}
|
|
|
|
|
}
|