Nesco.SignalRUserManagement.Core 1.0.11

dotnet add package Nesco.SignalRUserManagement.Core --version 1.0.11
                    
NuGet\Install-Package Nesco.SignalRUserManagement.Core -Version 1.0.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nesco.SignalRUserManagement.Core" Version="1.0.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nesco.SignalRUserManagement.Core" Version="1.0.11" />
                    
Directory.Packages.props
<PackageReference Include="Nesco.SignalRUserManagement.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nesco.SignalRUserManagement.Core --version 1.0.11
                    
#r "nuget: Nesco.SignalRUserManagement.Core, 1.0.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nesco.SignalRUserManagement.Core@1.0.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nesco.SignalRUserManagement.Core&version=1.0.11
                    
Install as a Cake Addin
#tool nuget:?package=Nesco.SignalRUserManagement.Core&version=1.0.11
                    
Install as a Cake Tool

Nesco.SignalRUserManagement.Core

Core models and interfaces for SignalR User Management. This library provides the foundational types for tracking and managing SignalR connections across your application.

Installation

dotnet add package Nesco.SignalRUserManagement.Core

Overview

This package contains:

  • Interfaces - Contracts for user connection services
  • Models - DTOs for representing users, connections, and events
  • Options - Configuration options for customizing behavior

Components

IUserConnectionService

The main interface for managing SignalR connections:

public interface IUserConnectionService
{
    // Send messages
    Task SendToAllAsync(string method, object? data = null);
    Task SendToUserAsync(string userId, string method, object? data = null);
    Task SendToConnectionAsync(string connectionId, string method, object? data = null);
    Task SendToUsersAsync(IEnumerable<string> userIds, string method, object? data = null);

    // Query connection state
    int GetConnectedUsersCount();
    int GetActiveConnectionsCount();
    bool IsUserConnected(string userId);
}

Models

ConnectedUserDTO

Represents a connected user with their active connections:

public class ConnectedUserDTO
{
    public string UserId { get; set; }
    public DateTime? LastConnect { get; set; }
    public DateTime? LastDisconnect { get; set; }
    public List<ConnectionDTO> Connections { get; set; }
    public int NumberOfConnections { get; }
}
ConnectionDTO

Represents a single SignalR connection:

public class ConnectionDTO
{
    public string ConnectionId { get; set; }
    public string UserAgent { get; set; }
    public bool Connected { get; set; }
    public DateTime ConnectedAt { get; set; }
}
UserConnectionEventArgs

Event data for connection events:

public class UserConnectionEventArgs
{
    public string UserId { get; set; }
    public string ConnectionId { get; set; }
    public string UserAgent { get; set; }
    public UserConnectionEventType EventType { get; set; }
    public DateTime Timestamp { get; set; }
}

public enum UserConnectionEventType
{
    Connected,
    Disconnected,
    Reconnected
}

UserManagementOptions

Configuration options for customizing behavior:

Option Default Description
BroadcastConnectionEvents true Broadcast connection events to all clients
ConnectionEventMethod "UserConnectionEvent" Method name for connection event broadcasts
AutoPurgeOfflineConnections true Automatically purge offline connections on connect
KeepAliveIntervalSeconds 15 Keep-alive interval for SignalR connections
ClientTimeoutSeconds 30 Client timeout in seconds
TrackUserAgent true Track user agent information
AutoReconnect true Automatically reconnect when connection drops
AutoReconnectRetryDelaysSeconds [0, 2, 5, 10, 30] Progressive backoff delays for reconnection
OnUserConnected null Callback invoked after user connects
OnUserDisconnected null Callback invoked before user disconnects

Requirements

  • .NET 10.0+

License

See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Nesco.SignalRUserManagement.Core:

Package Downloads
Nesco.SignalRUserManagement.Client

Client-side SignalR User Management for Blazor

Nesco.SignalRUserManagement.Server

Server-side SignalR User Management for ASP.NET Core with Dashboard components

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.11 468 12/10/2025
1.0.9 360 12/8/2025
1.0.8 223 12/7/2025
1.0.6 143 12/6/2025
1.0.1 625 12/1/2025
1.0.0 181 11/28/2025