question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Endpoint status always Online

See original GitHub issue

Hi,

I’m trying to understand how SignalR and Azure SignalR resiliency works according Resiliency and disaster recovery and Sharding.md.

I have created a very dummy custom router class to be able to check my primary endpoints and there status.

 public class CustomRouter : EndpointRouterDecorator
{
    private readonly ILogger<CustomRouter> _logger;

    public CustomRouter(ILogger<CustomRouter> logger)
    {
        _logger = logger;
    }

    public override ServiceEndpoint GetNegotiateEndpoint(HttpContext context, IEnumerable<ServiceEndpoint> endpoints)
    {
        var onlinePrimaryEndpointsCount = endpoints.Where(s => s.Online && s.EndpointType == EndpointType.Primary).Count();
        _logger.LogInformation(onlinePrimaryEndpointsCount > 0 ? "Some Primary Online" : "No Primary Online");

        var endpoint = base.GetNegotiateEndpoint(context, endpoints);
        _logger.LogInformation($"Endpoint : {endpoint.ConnectionString}");
        return endpoint;
    }
}

When I delete my signalR service in azure portal and try to connect a signalR client, I was expected my endpoint to not be marked as online but it currently is.

Is there something I misunderstood ?

I’m using:

  • ASP.NET Core v3.0-preview5
  • Microsoft.Azure.SignalR v1.1.0-preview1-10420

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vicancycommented, Jul 11, 2019

Thanks for the info. @alarco-l We will release the 1.0.11 package for netstandard2.0 as well as the 1.1.x preview package for netcoreapp3.0 in next release, which is planned in next week.

1reaction
vicancycommented, Jul 5, 2019

It should change. Could you try the latest one Install-Package Microsoft.Azure.SignalR -Version 1.1.0-preview1-10435 -Source https://www.myget.org/F/azure-signalr-dev/api/v3/index.json? We made several fixes to endpoint after 10420.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of an Offline Status | Endpoint Protection
The "Offline" status is only really cause for concern if you think those client should be online. In which case, it's time to...
Read more >
Always On - Endpoint Ownership
Whoever creates an AlwaysOn group is, by default, the owner of the endpoint. This is generally not a problem…unless that person leaves the ......
Read more >
Endpoint beta/me/presence is always returning availability ...
Hello All,. I have developed a piece of a code where I have an app registration on azure. 1) Grant the admin consent...
Read more >
Skype always shows me online even when it's not running
Solution (from Solution for SKYPE ALWAYS ONLINE):. Use these commands in a chat window with any person: /showplaces - Lists other instances ...
Read more >
Endpoint offline in OneView
If your endpoint is showing offline in OneView console, it may be due to missing ... ChromeOS, iOS, or a proxy, the online/offline...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found