ReplExecutionContext
Provides execution context for middleware and handlers.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/ReplExecutionContext.cs
Signature
Section titled “Signature”public sealed class ReplExecutionContextInheritance
Section titled “Inheritance”Constructors
Section titled “Constructors”ReplExecutionContext(IServiceProvider, CancellationToken)
Section titled “ReplExecutionContext(IServiceProvider, CancellationToken)”Initializes a new instance of the ReplExecutionContext class.
public ReplExecutionContext(IServiceProvider services, CancellationToken cancellationToken = default)Parameters
Section titled “Parameters”services(IServiceProvider): Service provider used during execution.cancellationToken(CancellationToken): Execution cancellation token.
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”Gets the cancellation token for the current execution.
public CancellationToken CancellationToken { get; }Returns
Section titled “Returns”Gets a mutable item bag for middleware communication.
public IDictionary<string, object?> Items { get; }Returns
Section titled “Returns”IDictionary<string, object>
Services
Section titled “Services”Gets the service provider for the current execution.
public IServiceProvider Services { get; }