Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _NestedSingleAsyncResult.cs / 1305376 / _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
- TableColumnCollection.cs
- NodeInfo.cs
- CompiledScopeCriteria.cs
- HtmlControl.cs
- DataExpression.cs
- CollectionEditor.cs
- DefaultValidator.cs
- ResourceDictionaryCollection.cs
- TemplateDefinition.cs
- DebugController.cs
- ServiceManager.cs
- ServiceDescriptionContext.cs
- Switch.cs
- sqlpipe.cs
- ObjectDataSourceEventArgs.cs
- FileLogRecordEnumerator.cs
- StrongNameKeyPair.cs
- CodeDomComponentSerializationService.cs
- ButtonChrome.cs
- ObjectDataSourceStatusEventArgs.cs
- RecipientInfo.cs
- SortDescription.cs
- BuildProviderCollection.cs
- ForceCopyBuildProvider.cs
- StringStorage.cs
- MailWebEventProvider.cs
- FixedSOMFixedBlock.cs
- TextCharacters.cs
- GroupByQueryOperator.cs
- MappingItemCollection.cs
- TimeSpanParse.cs
- ControlHelper.cs
- DirectoryNotFoundException.cs
- ToolStripSplitStackLayout.cs
- AssemblyAttributes.cs
- Grid.cs
- NavigationPropertyEmitter.cs
- XmlSignificantWhitespace.cs
- ObjectListComponentEditor.cs
- XomlCompilerHelpers.cs
- GregorianCalendarHelper.cs
- webproxy.cs
- DefaultPropertiesToSend.cs
- XmlElementAttributes.cs
- WindowPatternIdentifiers.cs
- ConditionCollection.cs
- DataGridViewRowConverter.cs
- AlphabeticalEnumConverter.cs
- ButtonBase.cs
- PositiveTimeSpanValidatorAttribute.cs
- MaskedTextBoxTextEditorDropDown.cs
- JsonFormatReaderGenerator.cs
- QueryException.cs
- Mapping.cs
- DeploymentSection.cs
- ComponentResourceKeyConverter.cs
- KeyGesture.cs
- TreeSet.cs
- SqlDataSourceFilteringEventArgs.cs
- CmsInterop.cs
- Separator.cs
- DockAndAnchorLayout.cs
- IndependentlyAnimatedPropertyMetadata.cs
- BitmapMetadataEnumerator.cs
- Parameter.cs
- CodeVariableDeclarationStatement.cs
- SqlMultiplexer.cs
- XmlTextWriter.cs
- FixedStringLookup.cs
- RootNamespaceAttribute.cs
- SelectedDatesCollection.cs
- PagedDataSource.cs
- Cursors.cs
- WindowsTokenRoleProvider.cs
- SqlBulkCopy.cs
- GenerateTemporaryTargetAssembly.cs
- SQLInt32Storage.cs
- RequiredFieldValidator.cs
- MethodRental.cs
- HtmlElement.cs
- ToolStripDropDownMenu.cs
- StubHelpers.cs
- TriggerCollection.cs
- CatalogPartCollection.cs
- Visitor.cs
- KoreanLunisolarCalendar.cs
- AssemblyAttributes.cs
- MetadataException.cs
- Point3DAnimation.cs
- LinqDataSourceUpdateEventArgs.cs
- VectorCollectionConverter.cs
- AccessControlEntry.cs
- XmlImplementation.cs
- ToolStripSplitButton.cs
- ToolStripRenderer.cs
- LazyTextWriterCreator.cs
- MenuItemStyle.cs
- NameValueConfigurationCollection.cs
- IfAction.cs
- DataGridViewTextBoxEditingControl.cs