-
Notifications
You must be signed in to change notification settings - Fork 518
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
Clean Startup Class #1245
Clean Startup Class #1245
Conversation
This may break the functionality required to register component suits like Syncfusion. See "Register The Syncfusion License" at: https://blazorhelpwebsite.com/ViewBlogPost/47 |
How this break your functionality while registering Syncfusion done in the module project? |
@hishamco - I am not certain it will break (I just hope not) :) I was concerned that if Oqtane is not able to call this method signature, this method may not work anymore:
The code for the module is attached: |
No worry the |
@hishamco - Thank you for looking at this :) |
I need to resolve the conflict after merging the multi database support PR |
# Conflicts: # Oqtane.Server/Startup.cs
@sbwalker do you have any feedback about this PR? |
@hishamco my apologies for taking so long to get to this... I have reviewed your PR and it does make startup a lot cleaner and should not have any compatibility issues as the ordering of operations has not changed. Please resolve the latest conflicts and I will merge. |
I will try to resolve the conflict, this need a little time, because one mistake may break everything ;) |
# Conflicts: # Oqtane.Client/Program.cs # Oqtane.Server/Startup.cs
Done from my side |
var jsRuntime = serviceProvider.GetRequiredService<IJSRuntime>(); | ||
var interop = new Interop(jsRuntime); | ||
var localizationCookie = await interop.GetCookie(CookieRequestCultureProvider.DefaultCookieName); | ||
var culture = CookieRequestCultureProvider.ParseCookieValue(localizationCookie).UICultures[0].Value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
today if I try to initialize Oqtane (first start) and use "Runtime": "WebAssembly" I'll receive something like
this is the fix
var culture = CookieRequestCultureProvider.ParseCookieValue(localizationCookie)?.UICultures?[0].Value;
would not like to add separate PR in order to avoid merge conflicts
@hishamco could you please modify your PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Openning a new issue is better for tracking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, done
@hishamco some changes were lost in this PR - specifically see how the HttpClient is constructed here ( bc72055#diff-2fbf541e290883c7d8ad8f0bf02d667e2a4a89b5485771e05231ee1a91f2e377 ) - it contains newer code than your PR. I feel like I need to roll back this PR. |
add logic removed in #1245 back to HttpClient creation
@hishamco it looks like the only code mistakenly removed was in the HttpClient creation so I added it back |
added back missing ITenantManager registration removed in #1245
the ITenantManager service was also removed from the PR which broke the application. |
Let me double check before we rollback |
@hishamco I already dealt with the 2 issues I found - they are linked to this PR |
Thanks, BTW there are some changes happen in translations and static resource I need to follow up why this happened especially static resources |
@hishamco I will be adding the default resource files ( *.resx ) to the Oqtane.Framework project this week - someone is working through them right now before the PR is submitted to:
Going forward all UI changes will need to have a corresponding update to the resx files. |
Why we need to generate the neutral resx while the default localisation APIs shows the missing resources? |
@hishamco see oqtane/oqtane.translations#34 for an explanation of the changes being made |
No description provided.