C# 클래스 System.Net.WebSockets.WebSocketBase

상속: WebSocket, IDisposable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CanHandleExceptionDuringClose bool
CleanUp void
CloseAsyncCore Task
CloseOutputAsyncCore Task
EnsureCloseOutputOperation void
EnsureKeepAliveOperation void
EnsureReceiveOperation void
EnsureSendOperation void
FinishOnCloseCompleted void
FinishOnCloseReceived void
GetBufferType WebSocketProtocolComponent.BufferType
GetMessageType WebSocketMessageType
OnBackgroundTaskException void
OnCloseOutputCompleted bool
OnKeepAlive void
ReceiveAsyncCore Task
ReleaseLock void
ReleaseLocks void
ResetFlagAndTakeLock void
ResetFlagsAndTakeLocks void
SendAsyncCore Task
SendFrameAsync Task
StartOnCloseCompleted Task
StartOnCloseReceived bool
TakeLocks void
ThrowIfAborted void
ThrowIfClosedOrAborted void
ThrowIfConvertibleException void
ThrowIfDisposed void
ThrowIfPendingException void
UpdateReceiveState void
ValidateNativeBuffers void

공개 메소드들

메소드 설명
Abort ( ) : void
CloseAsync ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task
CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task
Dispose ( ) : void
ReceiveAsync ( ArraySegment buffer, CancellationToken cancellationToken ) : Task
SendAsync ( ArraySegment buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken ) : Task

보호된 메소드들

메소드 설명
StartKeepAliveTimer ( ) : void
WebSocketBase ( Stream innerStream, string subProtocol, TimeSpan keepAliveInterval, WebSocketBuffer internalBuffer ) : System.Collections.Generic

비공개 메소드들

메소드 설명
CanHandleExceptionDuringClose ( Exception error ) : bool
CleanUp ( ) : void
CloseAsyncCore ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task
CloseOutputAsyncCore ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task
EnsureCloseOutputOperation ( ) : void
EnsureKeepAliveOperation ( ) : void
EnsureReceiveOperation ( ) : void
EnsureSendOperation ( ) : void
FinishOnCloseCompleted ( ) : void
FinishOnCloseReceived ( WebSocketCloseStatus closeStatus, string closeStatusDescription ) : void
GetBufferType ( WebSocketMessageType messageType, bool endOfMessage ) : WebSocketProtocolComponent.BufferType
GetMessageType ( WebSocketProtocolComponent bufferType ) : WebSocketMessageType
OnBackgroundTaskException ( Exception exception ) : void
OnCloseOutputCompleted ( ) : bool
OnKeepAlive ( object sender ) : void
ReceiveAsyncCore ( ArraySegment buffer, CancellationToken cancellationToken ) : Task
ReleaseLock ( object lockObject, bool &lockTaken ) : void
ReleaseLocks ( bool &thisLockTaken, bool &sessionHandleLockTaken ) : void
ResetFlagAndTakeLock ( object lockObject, bool &thisLockTaken ) : void
ResetFlagsAndTakeLocks ( bool &thisLockTaken, bool &sessionHandleLockTaken ) : void
SendAsyncCore ( ArraySegment buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken ) : Task
SendFrameAsync ( IList sendBuffers, CancellationToken cancellationToken ) : Task
StartOnCloseCompleted ( bool thisLockTakenSnapshot, bool sessionHandleLockTakenSnapshot, CancellationToken cancellationToken ) : Task
StartOnCloseReceived ( bool &thisLockTaken ) : bool
TakeLocks ( bool &thisLockTaken, bool &sessionHandleLockTaken ) : void
ThrowIfAborted ( bool aborted, Exception innerException ) : void
ThrowIfClosedOrAborted ( ) : void
ThrowIfConvertibleException ( string methodName, Exception exception, CancellationToken cancellationToken, bool aborted ) : void
ThrowIfDisposed ( ) : void
ThrowIfPendingException ( ) : void
UpdateReceiveState ( int newReceiveState, int expectedReceiveState ) : void
ValidateNativeBuffers ( WebSocketProtocolComponent action, WebSocketProtocolComponent bufferType, Interop dataBuffers, uint dataBufferCount ) : void

메소드 상세

Abort() 공개 메소드

public Abort ( ) : void
리턴 void

CloseAsync() 공개 메소드

public CloseAsync ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task
closeStatus WebSocketCloseStatus
statusDescription string
cancellationToken System.Threading.CancellationToken
리턴 Task

CloseOutputAsync() 공개 메소드

public CloseOutputAsync ( WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken ) : Task
closeStatus WebSocketCloseStatus
statusDescription string
cancellationToken System.Threading.CancellationToken
리턴 Task

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ReceiveAsync() 공개 메소드

public ReceiveAsync ( ArraySegment buffer, CancellationToken cancellationToken ) : Task
buffer ArraySegment
cancellationToken System.Threading.CancellationToken
리턴 Task

SendAsync() 공개 메소드

public SendAsync ( ArraySegment buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken ) : Task
buffer ArraySegment
messageType WebSocketMessageType
endOfMessage bool
cancellationToken System.Threading.CancellationToken
리턴 Task

StartKeepAliveTimer() 보호된 메소드

protected StartKeepAliveTimer ( ) : void
리턴 void

WebSocketBase() 보호된 메소드

protected WebSocketBase ( Stream innerStream, string subProtocol, TimeSpan keepAliveInterval, WebSocketBuffer internalBuffer ) : System.Collections.Generic
innerStream System.IO.Stream
subProtocol string
keepAliveInterval TimeSpan
internalBuffer WebSocketBuffer
리턴 System.Collections.Generic