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<T> WithScoped<T>(this IServiceProvider serviceProvider)
Attributes
| Type | Description |
|---|---|
| Nullable |
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| serviceProvider | IServiceProvider | The service scope factory |
Return Value
| Type | Description |
|---|---|
| IExecuteScoped |
