/// <summary> /// Performs protocol specific asynchronous 'Receive' operation. /// </summary> /// <param name="context">Context information.</param> protected sealed override void ReceiveCore(ClientResponseContext context) { if (!this.BoundSocket.ReceiveAsync(context.SocketContext)) { context.SetCompletedSynchronously(); this.OnReceived(context); } }
/// <summary> /// Performs protocol specific asynchronous 'Receive' operation. /// </summary> /// <param name="context">Context information.</param> protected sealed override void ReceiveCore( ClientResponseContext context ) { if ( !this.BoundSocket.ReceiveFromAsync( context.SocketContext ) ) { context.SetCompletedSynchronously(); this.OnReceived( context ); } }