18 lines
468 B
C#
18 lines
468 B
C#
using System;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace GenericHostSample
|
|
{
|
|
internal class MyContainerFactory : IServiceProviderFactory<MyContainer>
|
|
{
|
|
public MyContainer CreateBuilder(IServiceCollection services)
|
|
{
|
|
return new MyContainer();
|
|
}
|
|
|
|
public IServiceProvider CreateServiceProvider(MyContainer containerBuilder)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
} |