Summary
Get a service that runs actions with a new scope every time
- Assembly
- Rocket
.Surgery .DependencyInjection .Extensions .dll - Namespace
- Rocket
.Surgery .DependencyInjection - Containing Type
- Scoped
Service Extensions
Syntax
public static IExecuteScoped<T1, T2, T3, T4> WithScoped<T1, T2, T3, T4>(this IServiceScopeFactory serviceScopeFactory)
Type Parameters
| Name | Description |
|---|---|
| T1 | |
| T2 | |
| T3 | |
| T4 |
Parameters
| Name | Type | Description |
|---|---|---|
| serviceScopeFactory | IServiceScopeFactory | The service scope factory |
Return Value
| Type | Description |
|---|---|
| IExecuteScoped |
