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

Azure SignalR SDK is not working within Orchard Core Module #1193

Closed
lampersky opened this issue Jan 25, 2021 · 1 comment
Closed

Azure SignalR SDK is not working within Orchard Core Module #1193

lampersky opened this issue Jan 25, 2021 · 1 comment

Comments

@lampersky
Copy link

lampersky commented Jan 25, 2021

Describe the bug

When using Azure SignalR SDK within orchard module I'm not getting response for keep-alive request {"type":6}.
Everything works fine when switching to local SignalR.

To Reproduce

  1. Repro repo is located here https://github.com/lampersky/OrchardModuleWithAzureSignalRServiceSDK,
    (Repro project is made using dotnet cli, ocmvc + ocmodulemvc),
  2. Edit Startup.cs in Repro.TestModule and in SimpleMvc.Web by providing connection string to your AzureSignalR instance,
    .AddAzureSignalR("Endpoint=https://your-endpoint.signalr.net;AccessKey={your-access-key};Version=1.0;");
    or comment out this line to run project without Azure SignalR Service,
  3. Run Repro.Web project and check Network tab in your browser.

Exceptions (if any)

No exceptions just no response for ping request.

Further technical details

  • Azure SignalR SDK version 1.7.0
  • Server ASPNETCORE version 3.1.0
  • Your SignalR Client SDK version 5.0.2
  • Orchard Core version 1.0.0-rc2-15791

Connected Issue

I've also created bug in Orchard Core issue tracker, where you can find more (maybe usuful) details:
OrchardCMS/OrchardCore#8409

@lampersky lampersky changed the title Azure SignalR Service SDK is not working within Orchard Core Module Azure SignalR SDK is not working within Orchard Core Module Jan 25, 2021
@lampersky
Copy link
Author

I'm closing this issue.

Orchard core doesn't support IHostedService, that's why HeartBeat service is registered but not started, and this is why we can observe missing keep alive message.

OrchardCMS/OrchardCore#8409 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant