@@ -46,6 +46,36 @@ public static void RegisterPrefixes() { }
4646 public virtual System . Threading . Tasks . ValueTask SendAsync ( System . ReadOnlyMemory < byte > buffer , System . Net . WebSockets . WebSocketMessageType messageType , System . Net . WebSockets . WebSocketMessageFlags messageFlags , System . Threading . CancellationToken cancellationToken ) { throw null ; }
4747 protected static void ThrowOnInvalidState ( System . Net . WebSockets . WebSocketState state , params System . Net . WebSockets . WebSocketState [ ] validStates ) { }
4848 }
49+ public partial class WebSocketStream : System . IO . Stream
50+ {
51+ private protected WebSocketStream ( ) { }
52+ public override System . IAsyncResult BeginWrite ( byte [ ] buffer , int offset , int count , System . AsyncCallback ? callback , object ? state ) { throw null ; }
53+ public override System . IAsyncResult BeginRead ( byte [ ] buffer , int offset , int count , System . AsyncCallback ? callback , object ? state ) { throw null ; }
54+ public override bool CanRead { get { throw null ; } }
55+ public override bool CanSeek { get { throw null ; } }
56+ public override bool CanWrite { get { throw null ; } }
57+ public static System . Net . WebSockets . WebSocketStream Create ( WebSocket webSocket , WebSocketMessageType writeMessageType , bool ownsWebSocket = false ) { throw null ; }
58+ public static System . Net . WebSockets . WebSocketStream Create ( WebSocket webSocket , WebSocketMessageType writeMessageType , TimeSpan closeTimeout ) { throw null ; }
59+ public static System . Net . WebSockets . WebSocketStream CreateWritableMessageStream ( WebSocket webSocket , WebSocketMessageType writeMessageType ) { throw null ; }
60+ public static System . Net . WebSockets . WebSocketStream CreateReadableMessageStream ( WebSocket webSocket ) { throw null ; }
61+ protected override void Dispose ( bool disposing ) { }
62+ public override System . Threading . Tasks . ValueTask DisposeAsync ( ) { throw null ; }
63+ public override int EndRead ( System . IAsyncResult asyncResult ) { throw null ; }
64+ public override void EndWrite ( IAsyncResult asyncResult ) { }
65+ public override void Flush ( ) { }
66+ public override System . Threading . Tasks . Task FlushAsync ( System . Threading . CancellationToken cancellationToken ) { throw null ; }
67+ public override long Length { get { throw null ; } }
68+ public override long Position { get { throw null ; } set { } }
69+ public override int Read ( byte [ ] buffer , int offset , int count ) { throw null ; }
70+ public override System . Threading . Tasks . Task < int > ReadAsync ( byte [ ] buffer , int offset , int count , System . Threading . CancellationToken cancellationToken ) { throw null ; }
71+ public override System . Threading . Tasks . ValueTask < int > ReadAsync ( System . Memory < byte > buffer , System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
72+ public override long Seek ( long offset , System . IO . SeekOrigin origin ) { throw null ; }
73+ public override void SetLength ( long value ) { }
74+ public System . Net . WebSockets . WebSocket WebSocket { get { throw null ; } }
75+ public override void Write ( byte [ ] buffer , int offset , int count ) { throw null ; }
76+ public override System . Threading . Tasks . Task WriteAsync ( byte [ ] buffer , int offset , int count , System . Threading . CancellationToken cancellationToken ) { throw null ; }
77+ public override System . Threading . Tasks . ValueTask WriteAsync ( System . ReadOnlyMemory < byte > buffer , System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
78+ }
4979 public enum WebSocketCloseStatus
5080 {
5181 NormalClosure = 1000 ,
0 commit comments