Open sandboxFocus

Method WithDisjointSharedServices

WithDisjointSharedServices()

Returns a ServiceProvider<TBase> that has different shared services than the current ServiceProvider<TBase>. The new ServiceProvider<TBase> inherits all shared services of the current one, but adding a new shared service to the new instance will not affect the old instance, and adding services to the old instance will not affect the new one.

Declaration
public ServiceProvider<TBase> WithDisjointSharedServices()
Returns
Type Description
ServiceProvider<TBase>