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

16 lines
386 B
C#

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();
}
}