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
- ViewLoader.cs
- NavigationProperty.cs
- PeerIPHelper.cs
- AnnotationHighlightLayer.cs
- PropertyGrid.cs
- ListViewItem.cs
- CloudCollection.cs
- activationcontext.cs
- Column.cs
- DoubleAverageAggregationOperator.cs
- EditorPartCollection.cs
- FirstMatchCodeGroup.cs
- DataGridView.cs
- GetPageNumberCompletedEventArgs.cs
- ExtendedPropertyDescriptor.cs
- MethodCallTranslator.cs
- Matrix3DValueSerializer.cs
- ClientUtils.cs
- IndexExpression.cs
- keycontainerpermission.cs
- ToolStripGrip.cs
- RowUpdatedEventArgs.cs
- Select.cs
- RegisteredArrayDeclaration.cs
- ResourceDictionaryCollection.cs
- ProjectedSlot.cs
- Token.cs
- XsltContext.cs
- WebServiceHost.cs
- DataBoundControl.cs
- odbcmetadatacollectionnames.cs
- dbdatarecord.cs
- VScrollProperties.cs
- KeyMatchBuilder.cs
- ChtmlImageAdapter.cs
- PageThemeBuildProvider.cs
- input.cs
- Rijndael.cs
- HttpClientProtocol.cs
- AttachedProperty.cs
- CapabilitiesState.cs
- bindurihelper.cs
- MemberMaps.cs
- Configuration.cs
- Propagator.Evaluator.cs
- SignatureDescription.cs
- FontUnitConverter.cs
- Normalization.cs
- SequenceRangeCollection.cs
- DrawingCollection.cs
- DispatcherExceptionEventArgs.cs
- SrgsRuleRef.cs
- DocumentSequence.cs
- DataViewListener.cs
- ToolStripContentPanelRenderEventArgs.cs
- LogWriteRestartAreaAsyncResult.cs
- AutomationPropertyInfo.cs
- DotExpr.cs
- WhitespaceReader.cs
- DataListItemCollection.cs
- PowerModeChangedEventArgs.cs
- LabelExpression.cs
- DrawingCollection.cs
- IntranetCredentialPolicy.cs
- DataGridViewCellStateChangedEventArgs.cs
- TextChange.cs
- WebPartEditorCancelVerb.cs
- ImageBrush.cs
- _ShellExpression.cs
- HandledMouseEvent.cs
- CategoryAttribute.cs
- SqlReferenceCollection.cs
- DefaultTextStore.cs
- SerializationSectionGroup.cs
- FormClosedEvent.cs
- EventToken.cs
- ObjectPropertyMapping.cs
- EventRoute.cs
- StorageSetMapping.cs
- WebPartZone.cs
- EntityDataSourceContextDisposingEventArgs.cs
- login.cs
- InstanceData.cs
- GroupItemAutomationPeer.cs
- SnapshotChangeTrackingStrategy.cs
- IIS7WorkerRequest.cs
- QuadraticBezierSegment.cs
- DelegatingConfigHost.cs
- PersistChildrenAttribute.cs
- ColumnMapVisitor.cs
- SafeRightsManagementEnvironmentHandle.cs
- GrammarBuilderPhrase.cs
- NavigationPropertyEmitter.cs
- VisualTreeFlattener.cs
- FormParameter.cs
- printdlgexmarshaler.cs
- LinqDataSourceValidationException.cs
- SchemaExporter.cs
- FieldToken.cs
- Propagator.JoinPropagator.cs