ScopedServiceExtensions.

WithScoped<T1, T2, T3>(IServiceScopeFactory) Method

Summary

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

Syntax

public static IExecuteScoped<T1, T2, T3> WithScoped<T1, T2, T3>(this IServiceScopeFactory serviceScopeFactory)

Type Parameters

Name Description
T1
T2
T3

Parameters

Name Type Description
serviceScopeFactory IServiceScopeFactory The service scope factory

Return Value

Type Description
IExecuteScoped<T1, T2, T3>