Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CharKeyFrameCollection.cs
- PriorityBinding.cs
- ConstrainedDataObject.cs
- BroadcastEventHelper.cs
- BulletedListEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SqlDataSourceQueryEditor.cs
- Bold.cs
- WebPartConnectVerb.cs
- DataGrid.cs
- FilterQuery.cs
- Helper.cs
- PathGeometry.cs
- Literal.cs
- GridViewSortEventArgs.cs
- MessageBox.cs
- IxmlLineInfo.cs
- IPAddress.cs
- ByteStreamMessageEncodingElement.cs
- TrackingValidationObjectDictionary.cs
- ConnectivityStatus.cs
- BoolExpr.cs
- TrackingDataItemValue.cs
- XmlnsPrefixAttribute.cs
- HttpApplicationFactory.cs
- TimeZoneInfo.cs
- MemberDomainMap.cs
- XmlSchemaExporter.cs
- PropertyDescriptorCollection.cs
- DataStorage.cs
- SafeLibraryHandle.cs
- DragDeltaEventArgs.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- Empty.cs
- TreeChangeInfo.cs
- InheritedPropertyChangedEventArgs.cs
- SaveFileDialog.cs
- EventQueueState.cs
- CompositeActivityMarkupSerializer.cs
- TextDecorationUnitValidation.cs
- Border.cs
- InvokeDelegate.cs
- ZipIOBlockManager.cs
- ServiceDurableInstance.cs
- XappLauncher.cs
- CaseInsensitiveComparer.cs
- CallInfo.cs
- Renderer.cs
- ParentControlDesigner.cs
- SamlAttribute.cs
- UserControl.cs
- FollowerQueueCreator.cs
- XamlGridLengthSerializer.cs
- WebRequestModulesSection.cs
- UIAgentAsyncBeginRequest.cs
- HandlerBase.cs
- XPathNodeInfoAtom.cs
- CollaborationHelperFunctions.cs
- TimeSpanOrInfiniteConverter.cs
- RoutedPropertyChangedEventArgs.cs
- XamlRtfConverter.cs
- DataServiceHostWrapper.cs
- AttachedPropertyBrowsableAttribute.cs
- ChangeBlockUndoRecord.cs
- ConfigurationSectionCollection.cs
- WebServiceErrorEvent.cs
- DataGridViewCellValueEventArgs.cs
- GroupedContextMenuStrip.cs
- FrameworkPropertyMetadata.cs
- InputLangChangeEvent.cs
- ProfileGroupSettingsCollection.cs
- TextTreeRootNode.cs
- errorpatternmatcher.cs
- ObjectKeyFrameCollection.cs
- altserialization.cs
- PrintDialog.cs
- ImageMap.cs
- SerTrace.cs
- XmlAttributeAttribute.cs
- DrawToolTipEventArgs.cs
- ErrorFormatter.cs
- FormClosedEvent.cs
- DispatcherTimer.cs
- CodeCommentStatementCollection.cs
- HostingPreferredMapPath.cs
- OutputCacheProfile.cs
- UriExt.cs
- ExtenderControl.cs
- ControllableStoryboardAction.cs
- OrCondition.cs
- CopyOnWriteList.cs
- RequestChannelBinder.cs
- IPeerNeighbor.cs
- InheritablePropertyChangeInfo.cs
- InternalMappingException.cs
- InstanceLockException.cs
- PassportIdentity.cs
- DataBinding.cs
- bindurihelper.cs
- NetDispatcherFaultException.cs