Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Cast or convert to InProcess version of wrappers #1

Open
KristofferStrube opened this issue Nov 2, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@KristofferStrube
Copy link
Owner

As described in KristofferStrube/Blazor.FileSystemAccess#23 we use a new structure that has InProcess variants of wrapper classes that have synchronous methods or attributes.

I would want for it to be possible to convert the Blazor Server wrapper classes to the extended Blazor WASM InProcess variants through a cast or some method like AsInProcess(), ToInProcessWrapper. This might be possible to do by defining an explicit cast as an IJSObjectReference can be casted to an IJSInProcessObjectReference explicitly. The thing that might not be possible to do through a cast as that is synchronous is to create the inProcessHelper which is needed for the InProcess variants.

@KristofferStrube KristofferStrube added the enhancement New feature or request label Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant