public ServiceProviderHelper(IocScannerOptions options = null) { var sc = new ServiceCollection(); sc.Scan <ServiceProviderHelper>( options ); ServiceProvider = sc.BuildServiceProvider(); }
public ServiceProviderHelper(IEnumerable <Assembly> assemblies, IocScannerOptions options = null) { var sc = new ServiceCollection(); sc.Scan( assemblies, options ); ServiceProvider = sc.BuildServiceProvider(); }