17 lines
549 B
C#
17 lines
549 B
C#
|
|
using Microsoft.Extensions.Configuration;
|
||
|
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
|
|
||
|
|
namespace zero;
|
||
|
|
|
||
|
|
public static class ZeroServiceCollectionExtensions
|
||
|
|
{
|
||
|
|
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);
|
||
|
|
}
|
||
|
|
}
|