-
Notifications
You must be signed in to change notification settings - Fork 68
Added sample demonstrating how to connect session with Blazor and WebForms #542
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
Conversation
|
@twsouthwick I redid the branch because I screwed up the rebase yesterday. It should be all set. |
twsouthwick
left a comment
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.
LGTM, except let's break it out into its own sample so the blazor components in webforms one still works
| * B: Block all requests from paths containing "/_blazor" | ||
| * TLDR: We need to ensure that SystemWeb.Adapters is not used with Blazor SignalR | ||
| */ | ||
| app.UseWhen( |
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.
Is there a tracking issue for this? Not sure if this is the best way, but we should have an out of the box way to handle this I think.
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.
Not that I know of. I mentioned the deadlock in my previous PR and ended up with this workaround to get my project (and this sample) working.
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.
sounds good for the sample for now. could you create an issue to track this?
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.
| app.MapBlazorHub(); | ||
| app.MapBlazorPages("/_Host"); | ||
| app.MapForwarder("/{**catch-all}", app.Configuration["ProxyTo"]!).WithOrder(int.MaxValue); | ||
| app.MapRazorComponents<App>() |
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.
This breaks the existing sample that is to show using blazor components in webforms. It seems like this sample you have should be a separate one
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.
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.
awesome! I did not see that initially. it's fine as-is
twsouthwick
left a comment
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.
LGTM - thanks for rebasing and the work here.
|
Hi, I am working on a project upgrading webform app into blazor server app, for session sharing I used the same thing you mentioned here. Everything working fine I am able to be getting session created at WebForm app into the blazor page. But When I am on blazor page and trying to go back to any webform app page even when I try to reload the same blazor page the page is loading infinite and after some time throwing the error Could you please help me out into this, how I can fix that thing. Thanks |
|
@Vikrant-hub44 can you create a new issue with the details of your app setup? Preferably a small repro would be helpful |
|
@twsouthwick thank you for the response. I've created the bug #591 and attached setup code screen into it. |



PR Title
Updated sample demonstrating how to connect session with Blazor and WebForms using a Blazor Web App
PR Description
Updated sample demonstrating how to connect session with Blazor and WebForms using a Blazor Web App
Addresses #382