System.Net.WebConnectionStream.WriteCallbackWrapper C# (CSharp) Method

WriteCallbackWrapper() static private method

static private WriteCallbackWrapper ( IAsyncResult r ) : void
r IAsyncResult
return void
	   	void WriteCallbackWrapper (IAsyncResult r)
		{
			WebAsyncResult result = r as WebAsyncResult;
			if (result != null && result.AsyncWriteAll)
				return;

			if (r.AsyncState != null) {
				result = (WebAsyncResult) r.AsyncState;
				result.InnerAsyncResult = r;
				result.DoCallback ();
			} else {
				try {
					EndWrite (r);
				} catch {
				}
			}
		}