AzureSignalR-samples
AzureSignalR-samples copied to clipboard
Connection signalR Azure in default mode with Form Application
Good morning,
I am trying to create a desktop application form (Server-Client) with the azure signalR service. The Client Server application without using azure works, if I try to use azure I cannot call the connection activation from a button. Can you help me ?
Could you share more details about what error you see?
I try use this code for start connection:
private IDisposable SignalR {get; set;}
const string ServerURI = "Endpoint=https://..."
private void button1_Click(object sender, EventArgs e)
{
Task.Run(() => StartServer());
}
private void StartServer()
{
try
{
SignalR = WebApp.Start<Startup>(ServerURI);
}
catch(Exception e)
{
}
}
Error: Connection refused
Thank you
Is it possible to share a sample project that can reproduce this issue?