A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://dotnet.github.io/dotNext/api/DotNext.ServiceProviderFactory.Builder.html below:

Class ServiceProviderFactory.Builder | .NEXT

Class ServiceProviderFactory.Builder

Represents builder of the service provider.

Inheritance

ServiceProviderFactory.Builder

Namespace: DotNext Assembly: DotNext.dll Syntax
public 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.

Declaration
public ServiceProviderFactory.Builder Add<TService>(TService service) where TService : notnull
Parameters Type Name Description TService service

The service instance.

Returns Type Parameters Name Description TService

The type of the service.

| Edit this page View Source Build(IServiceProvider?)

Constructs service provider.

Declaration
public 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 Methods

RetroSearch 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