ScopedServiceExtensions.

WithScoped<T1, T2>(IServiceProvider) Method

Summary

Get a service that runs actions with a new scope every time

Syntax

public static IExecuteScoped<T1, T2> WithScoped<T1, T2>(this IServiceProvider serviceProvider)

Attributes

Type Description
NullableContextAttribute

Type Parameters

Name Description
T1
T2

Parameters

Name Type Description
serviceProvider IServiceProvider The service scope factory

Return Value

Type Description
IExecuteScoped<T1, T2>