SessionScopeBehavior
How a Run* call manages the session’s dependency-injection scope.
- Kind:
Enum - Namespace: Repl
- Assembly:
Repl.Defaults - Source: src/Repl.Defaults/SessionScopeBehavior.cs
Signature
Section titled “Signature”public enum SessionScopeBehaviorFields
Section titled “Fields”CallerOwned
Section titled “CallerOwned”The caller’s service provider already represents the session’s scope (for example a Blazor circuit or per-request scope, or a session owner spanning several one-shot runs): the run resolves from it directly and never opens a nested scope.
CallerOwned = 1Returns
Section titled “Returns”PerRun
Section titled “PerRun”The run opens one DI scope for the session (the default): Scoped services resolve
per session and scoped disposables are released when the session ends.
PerRun = 0