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

Connection signalR Azure in default mode with Form Application #150

Open
SfolziniLuca opened this issue Jan 12, 2021 · 3 comments
Open

Connection signalR Azure in default mode with Form Application #150

SfolziniLuca opened this issue Jan 12, 2021 · 3 comments

Comments

@SfolziniLuca
Copy link

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 ?

@chenkennt
Copy link
Contributor

Could you share more details about what error you see?

@SfolziniLuca
Copy link
Author

SfolziniLuca commented Jan 12, 2021

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

@chenkennt
Copy link
Contributor

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

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

2 participants