Example #1
0
        public override IServiceProvider BuildServiceProvider(IServiceProviderBuilderParam param)
        {
            var container = new Autofac.ContainerBuilder();

            container.Populate(param.ServiceCollection);
            return(new AutofacServiceProvider(container.Build()));
        }
Example #2
0
 /// <inheritdoc />
 public virtual IServiceProvider BuildServiceProvider(IServiceProviderBuilderParam param)
 {
     return(param.ServiceCollection.BuildServiceProvider());
 }