chromelyapps / Chromely

Build Cross Platform HTML Desktop Apps on .NET using native GUI, HTML5, JavaScript, CSS, Owin, AspNetCore (MVC, RazorPages, Blazor)
MIT License
2.98k stars 279 forks source link

Customized browser host issues #248

Closed smx-smx closed 4 years ago

smx-smx commented 4 years ago

Hello and thank you for this project

I'm working on creating a customized browser host to provide custom IPC handlers, schema handlers and process handlers

I stumbled about these code-related problems:

mattkol commented 4 years ago

@smx-smx

Hello and thank you for this project

Thank you.

What has been done satisfies most commonly used scenarios. Customizations and extension are encouraged via custom handlers, inheritance and other patterns. Sure, nothing here is written in stone, but we need to weigh benefits of changes (pros and cons).

It should be fine making these changes. I do not see it breaking anything.

I have made some changes based on the link you provided, I am not sure I captured everything. If this is not correct, I will advise you create a PR. If you do for 5.0 I will find time between now and the weekend to apply to 5.1.

Note that 5.0 is not on C#8 (5.1 is) , so there will be issues with https://github.com/uxmal/reko-chromely/blob/34780c3f80d1709c1eda95ae590b16187d0ef068/src/BrowserHost/ChromelyExtensions/ActionTask.cs#L36

If the handlers/features are not registered those method calls should be pass thru, I think.

Also note that some of the points you raised may have been addressed in 5.1.

Thanks.

smx-smx commented 4 years ago

Thank you for the changes, @mattkol. To be honest, i didn't know there were 2 different versions of the project (5.0 and 5.1) I discovered it yesterday, and i'm in the process of migrating the codebase to use the new pre-release of Chromely

I'll let you know if i find some issue with that

mattkol commented 4 years ago

@smx-smx 5.0 will still be valid for a while, so I expect we will still fix bugs for sometime on 5.0. But of course major changes will be on 5.1 going forward. If you have done considerable work on 5.0 that should not be discarded. We can apply the changes to both.

Thanks.