AzureSignalR-samples icon indicating copy to clipboard operation
AzureSignalR-samples copied to clipboard

Connection signalR Azure in default mode with Form Application

Open SfolziniLuca opened this issue 4 years ago • 3 comments

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 ?

SfolziniLuca avatar Jan 12 '21 07:01 SfolziniLuca

Could you share more details about what error you see?

chenkennt avatar Jan 12 '21 09:01 chenkennt

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

SfolziniLuca avatar Jan 12 '21 09:01 SfolziniLuca

Is it possible to share a sample project that can reproduce this issue?

chenkennt avatar Jan 12 '21 09:01 chenkennt