Esempio n. 1
0
 /// <summary>
 /// Overrides the factory used to create the service provider.
 /// </summary>
 /// <returns>The same instance of the <see cref="IWebAssemblyHostBuilder"/> for chaining.</returns>
 public IWebAssemblyHostBuilder UseServiceProviderFactory <TContainerBuilder>(Func <WebAssemblyHostBuilderContext, IServiceProviderFactory <TContainerBuilder> > factory)
 {
     _serviceProviderFactory = new WebAssemblyServiceFactoryAdapter <TContainerBuilder>(() => _BrowserHostBuilderContext, factory ?? throw new ArgumentNullException(nameof(factory)));
     return(this);
 }