Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / _NestedSingleAsyncResult.cs / 1 / _NestedSingleAsyncResult.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Net {
//
// The NestedAsyncResult - used to wrap async requests
// this is used to hold another async result made
// through a call to another Begin call within.
//
internal class NestedSingleAsyncResult : LazyAsyncResult {
//
// this is usually for operations on streams/buffers,
// we save information passed in on the Begin call:
// since some calls might need several completions, we
// need to save state on the user's IO request
//
internal byte[] Buffer;
internal int Offset;
internal int Size;
//
// Constructors
//
// Completed in advance.
internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, object result) :
base(asyncObject, asyncState, asyncCallback, result)
{ }
internal NestedSingleAsyncResult(Object asyncObject, Object asyncState, AsyncCallback asyncCallback, byte[] buffer, int offset, int size)
: base( asyncObject, asyncState, asyncCallback ) {
Buffer = buffer;
Offset = offset;
Size = size;
}
}; // class NestedAsyncResult
} // namespace System.Net
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CubicEase.cs
- DynamicPropertyHolder.cs
- TextReader.cs
- ChildrenQuery.cs
- FederatedMessageSecurityOverHttp.cs
- BooleanStorage.cs
- RemotingConfigParser.cs
- UpDownEvent.cs
- TextRenderer.cs
- FormViewUpdateEventArgs.cs
- TriggerCollection.cs
- WebPartVerbsEventArgs.cs
- EncoderNLS.cs
- RepeatBehavior.cs
- SQLByte.cs
- DynamicILGenerator.cs
- JulianCalendar.cs
- IndexOutOfRangeException.cs
- diagnosticsswitches.cs
- ClickablePoint.cs
- Deflater.cs
- FrameworkContentElementAutomationPeer.cs
- DocumentScope.cs
- SoapHeader.cs
- SizeFConverter.cs
- ColorAnimationBase.cs
- ObjectTokenCategory.cs
- sqlser.cs
- WindowsListViewItemCheckBox.cs
- Geometry3D.cs
- WindowsUpDown.cs
- oledbmetadatacolumnnames.cs
- Listbox.cs
- WebPartConnectionCollection.cs
- PropertyDescriptorCollection.cs
- DataServiceEntityAttribute.cs
- CrossAppDomainChannel.cs
- ComAdminInterfaces.cs
- PolicyLevel.cs
- SqlDataSourceConfigureSelectPanel.cs
- TemplateControlParser.cs
- VideoDrawing.cs
- WriteTimeStream.cs
- WebBrowser.cs
- InkCanvasFeedbackAdorner.cs
- ISFTagAndGuidCache.cs
- FixedTextBuilder.cs
- HttpRuntime.cs
- MapPathBasedVirtualPathProvider.cs
- Collection.cs
- ParserOptions.cs
- DBDataPermission.cs
- CurrentChangingEventArgs.cs
- IndexOutOfRangeException.cs
- QuaternionKeyFrameCollection.cs
- StrokeSerializer.cs
- ApplicationHost.cs
- RequestQueryParser.cs
- StreamHelper.cs
- Base64Decoder.cs
- DataTableMappingCollection.cs
- FontWeight.cs
- PrefixHandle.cs
- CategoryGridEntry.cs
- LicenseContext.cs
- ConnectionManagementElement.cs
- ObjectFullSpanRewriter.cs
- SafeLibraryHandle.cs
- CodeDOMProvider.cs
- ToolStripItemEventArgs.cs
- TabPanel.cs
- WeakEventTable.cs
- _IPv6Address.cs
- XmlEventCache.cs
- TextBox.cs
- HandleRef.cs
- MDIControlStrip.cs
- _Win32.cs
- DynamicILGenerator.cs
- FloaterBaseParaClient.cs
- PrimitiveXmlSerializers.cs
- DocumentSequence.cs
- MessageSmuggler.cs
- SharedStatics.cs
- nulltextnavigator.cs
- SoapFaultCodes.cs
- PolicyStatement.cs
- SystemNetworkInterface.cs
- SystemInfo.cs
- TextModifierScope.cs
- InkCanvasFeedbackAdorner.cs
- WorkflowTimerService.cs
- SoapAttributeAttribute.cs
- UnsafeNativeMethods.cs
- SortDescriptionCollection.cs
- TraceLog.cs
- ControlPropertyNameConverter.cs
- HierarchicalDataBoundControlAdapter.cs
- ErrorFormatter.cs
- ScopelessEnumAttribute.cs