Interface IScopedServiceProviderAccessor
Gives access to the IServiceProvider of the current scope (for example the current HTTP request or Blazor circuit), so scoped services can be resolved by code that lives longer than the scope.
public interface IScopedServiceProviderAccessor
Properties
ServiceProvider
Gets or sets the IServiceProvider of the current scope (for example the current HTTP request or Blazor circuit).
IServiceProvider ServiceProvider { get; set; }