Represents builder of the service provider.
InheritanceServiceProviderFactory.Builder
Namespace: DotNext Assembly: DotNext.dll Syntaxpublic sealed class ServiceProviderFactory.Builder : ISupplier<IServiceProvider>, IFunctional<Func<IServiceProvider>>, IResettable
Methods | Edit this page View Source Add<TService>(TService)
Registers service of the specified type.
Declarationpublic ServiceProviderFactory.Builder Add<TService>(TService service) where TService : notnull
Parameters Type Name Description TService service
The service instance.
Returns Type Parameters Name Description TServiceThe type of the service.
| Edit this page View Source Build(IServiceProvider?)Constructs service provider.
Declarationpublic IServiceProvider Build(IServiceProvider? fallback = null)
Parameters Type Name Description IServiceProvider fallback
The fallback provider used for service resolution.
Returns | Edit this page View Source Reset()Clears internal state of this builder and makes it reusable for subsequent calls.
Declaration Implements Extension MethodsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4