18 lines
472 B
C#
18 lines
472 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Security.Claims;
|
|
using System.Threading.Tasks;
|
|
using Channels;
|
|
|
|
namespace Microsoft.AspNetCore.Sockets
|
|
{
|
|
public class Connection
|
|
{
|
|
public string ConnectionId { get; set; }
|
|
public ClaimsPrincipal User { get; set; }
|
|
public IChannel Channel { get; set; }
|
|
public IDictionary<string, string> Metadata { get; } = new Dictionary<string, string>();
|
|
}
|
|
}
|