Skip to content

Conversation

@pranavkm
Copy link

/// Gets the current <see cref="IJSRuntime"/>, if any.
/// </summary>
public static IJSRuntime Current => _currentJSRuntime.Value;
internal static IJSRuntime Current => _currentJSRuntime.Value;
Copy link
Member

Choose a reason for hiding this comment

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

It says remove. But from looking at it, I can see that it is not removed.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed. Could the entire JSRuntime.cs file be removed?

Copy link
Author

Choose a reason for hiding this comment

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

Not in any trivial way. It's used from a static context by DotnetNetDispatcher to notify of completion:

In addition, there's also some pretty gnarly coupling of the runtime \ SimpleJSON's serialization and object tracking. I was hoping not to mess around with the code here if it's meant to be cleaned up soon.

@pranavkm pranavkm force-pushed the prkrishn/remove-jsruntime-current branch from 3a67975 to 3b46605 Compare February 15, 2019 21:00
@pranavkm pranavkm changed the title Remove JSRuntime.Current Make JSRuntime.Current non-public Feb 15, 2019
@pranavkm
Copy link
Author

Bump

Copy link
Member

@rynowak rynowak left a comment

Choose a reason for hiding this comment

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

This accomplishes our goals for preview 3, we can revise later if necessary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants