Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

add support for clearing variables from HttpKernel#3467

Merged
jonsequitur merged 2 commits into
dotnet:mainfrom
jonsequitur:HttpKernel-variable-clearing
Feb 27, 2024
Merged

add support for clearing variables from HttpKernel#3467
jonsequitur merged 2 commits into
dotnet:mainfrom
jonsequitur:HttpKernel-variable-clearing

Conversation

@jonsequitur

Copy link
Copy Markdown
Contributor

No description provided.

@phenning phenning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, exactly what we need!

@jonsequitur
jonsequitur merged commit 3ba37fe into dotnet:main Feb 27, 2024

namespace Microsoft.DotNet.Interactive.Http;

public class ClearValues : KernelCommand

@shyamnamboodiripad shyamnamboodiripad Feb 27, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems generally useful. Any reason why this is not defined in the core Interactive assembly?

Currently the http editor does not (need to) directly reference the Interactive.Http assembly. Adding that reference may not be problematic - but still wanted to double check whether we can move this to the main assembly and avoid the additional dependency.

RegisterForDisposal(_client);
}

public Task HandleAsync(ClearValues command, KernelInvocationContext context)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we implement this using explicit interface implementation and avoid the public API similar to what we do for the other commands below?

@colombod colombod added the Area-HTTP HttpKernel, Visual Studio HTTP Editor label Feb 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Area-HTTP HttpKernel, Visual Studio HTTP Editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants