Пример #1
0
 /// <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);
     }
 }
Пример #2
0
		/// <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 );
			}
		}