-
Notifications
You must be signed in to change notification settings - Fork 389
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
How to add Azure SignalR Service in Azure Api application #85
Comments
Hi @wmktz1
Not sure what Please note that REST API does NOT support ASP.NET version SignalR. ASP.NET Core SignalR supports that. cc @hugobarona |
@vicancy I was trying to use the aspnet-sample chat app together with the .net core chat app but i don't see the messages coming across. They both connect fine to Azure SignalR but the broadcast messages from one don't show up on the other. Any idea ? |
@nyakimov ASP.NET SignalR and ASP.NET Core SignalR are using different protocols and they are not recognized by each other. |
So what is the advisable method to achieve Azure SignalR communication between .net core and .net full framework applications ? |
I just found this https://github.com/Azure/azure-signalr and seems like Azure SignalR supports both ASP.NET Core SignalR and ASP.NET SignalR. I ran two instances of the asp.net-samples/chatroom app which is the ASP.NET but I still can't get the messages to come across from one instance to the other.. very strange |
Yes, it supports both protocols, separately. They are using different channels and different message protocols, and they can't talk to each other. You can consider them as different app isolations.
Interesting question. Could you describe your scenario in a bit more detail? One way I can think of is to have some client implementing both ASP.NET SignalR and ASP.NET Core SignalR. This client can act as an adapter and it can receive messages from one ASP.NET SignalR connection and send messages to the other ASP.NET Core SignalR connection. |
I have multiple microservices that process payments and they're all .net core. The payment request gets initiated from a .net full framework and I'm trying to notify the client when the payment goes through the different stages/statuses. I was thinking I can send signalr message from the .net core backend app and receive it in the front end .net full framework app. I hope that makes sense. I can clarify more it needed. |
I am thinking, the initiating payment app which uses .net full framework, which version is it? It can also use ASP.NET Core SignalR Client because the SDK is targeting |
It's .NET Framework 4.7.2. I'm going to try to reference the Microsoft.AspNetCore.SignalR.Core package. Would I also have to use the signalr.js for the front end or will the jquery.SignalR library still work ? |
No the old jquery.SignalR does not work for Core SignalR, they are different. Please follow the instruction for ASP.NET Core SignalR client, the syntax is similar and easy to use. |
I'm having some trouble hooking up the AspNet Chatroom app (https://github.com/aspnet/AzureSignalR-samples/tree/master/aspnet-samples/ChatRoom) to Azure SignalR using the ASP.NET Core SignalR Client. I'm trying to hook it up in the same manner as the .net core chat app. In the .net core chat app my Startup.cs looks like this: `// Copyright (c) Microsoft. All rights reserved. using Microsoft.AspNetCore.Builder; namespace Microsoft.Azure.SignalR.Samples.ChatRoom
} The Asp.net full framwork chat app startup.cs looks like this: using System; [assembly: OwinStartup(typeof(ChatRoom.Startup))] namespace ChatRoom
} |
No you can't.
After rereading your description, I feel that I misunderstood your scenario. It should be that your Another approach, if you are to broadcast messages, you can use the Azure SignalR Serverless mode, and use REST API or Management API to broadcast messages. Clients use ASP.NET Core SignalR clients. A serverless sample is here |
Yes client side is .net 472 and the backend microservices are .net core 2.x I'm trying to get both of them connected to Azure SignalR which I'm able to but apparently they're using the two different protocols and not able to pass messages between each other so I was trying to see how I can get them connected through the same protocol to Azure SignalR instance. |
now i have a problem, we have an asp.net web application`s Azure Api application, start class is Global.asax.cs .
i fllow https://github.com/aspnet/AzureSignalR-samples/tree/master/aspnet-samples/ChatRoom
my question is
1、Azure SignalR Service must in owin?
2、Can Global.asax.cs connect to Azure SignalR Service ?
3、Could you suggest How to add Azure SignalR Service in Azure Api application
Thanks everyone
The text was updated successfully, but these errors were encountered: