sharp-chat/SharpChat.Common/Protocol/IConnection.cs

16 lines
386 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Sessions;
using System;
using System.Net;
namespace SharpChat.Protocol {
public interface IConnection {
string ConnectionId { get; }
IPAddress RemoteAddress { get; }
bool IsAvailable { get; }
bool IsSecure { get; }
DateTimeOffset LastPing { get; set; }
ISession Session { get; set; }
void Close();
}
}