Skip to content

Commit c205a7c

Browse files
committed
Implement Items on http context
1 parent 8f744c5 commit c205a7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Commands.Http/Commands.Http/Execution/HttpCommandContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public class HttpCommandContext : IResourceContext
3434
/// <inheritdoc />
3535
public Arguments Arguments { get; }
3636

37+
/// <summary>
38+
/// A dictionary for storing arbitrary items related to this command context.
39+
/// </summary>
40+
public IDictionary<string, object?> Items { get; }
41+
3742
/// <summary>
3843
/// Initializes a new instance of the <see cref="HttpCommandContext"/> class with the specified HTTP context and prefix length.
3944
/// </summary>
@@ -82,6 +87,7 @@ public HttpCommandContext(HttpListenerContext httpContext, IServiceProvider serv
8287
arg[arguments.Length + i] = new(queryString.GetKey(i)!, queryString.Get(i));
8388

8489
Arguments = new(arg);
90+
Items = new Dictionary<string, object?>();
8591
}
8692

8793
/// <summary>

0 commit comments

Comments
 (0)