namespace EmbedIO.WebSockets.Internal { /// /// Represents a wrapper around a regular WebSocketContext. /// /// internal sealed class SystemWebSocketReceiveResult : IWebSocketReceiveResult { private readonly System.Net.WebSockets.WebSocketReceiveResult _results; /// /// Initializes a new instance of the class. /// /// The results. public SystemWebSocketReceiveResult(System.Net.WebSockets.WebSocketReceiveResult results) { _results = results; } /// public int Count => _results.Count; /// public bool EndOfMessage=> _results.EndOfMessage; /// public int MessageType => (int) _results.MessageType; } }