コード例 #1
0
 /// <summary>
 /// Creates a new instance of the Scoped Service Provider
 /// </summary>
 /// <param name="containerBuilder">The dummy container builder</param>
 /// <returns>A new scoped service provider</returns>
 public IServiceProvider CreateServiceProvider(ContainerBuilder containerBuilder)
 {
     using ScopedServiceScope scoped = new ScopedServiceScope();
     return(scoped.ServiceProvider);
 }