Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Messaging / System / Messaging / ReceiveCompletedEventArgs.cs / 1305376 / ReceiveCompletedEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class ReceiveCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ////// event. /// internal ReceiveCompletedEventArgs(MessageQueue sender, IAsyncResult result) { this.result = result; this.sender = sender; } /// /// /// public IAsyncResult AsyncResult { get { return this.result; } set { this.result = value; } } ///Contains the result of the asynchronous /// operation requested. ////// /// public Message Message { get { if (this.message == null) { try { this.message = this.sender.EndReceive(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //The end result of the posted asynchronous receive /// operation. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Messaging { using System.Diagnostics; using System; ////// /// public class ReceiveCompletedEventArgs : EventArgs { private IAsyncResult result; private Message message; private MessageQueue sender; ///Provides data for the ////// event. /// internal ReceiveCompletedEventArgs(MessageQueue sender, IAsyncResult result) { this.result = result; this.sender = sender; } /// /// /// public IAsyncResult AsyncResult { get { return this.result; } set { this.result = value; } } ///Contains the result of the asynchronous /// operation requested. ////// /// public Message Message { get { if (this.message == null) { try { this.message = this.sender.EndReceive(result); } catch { throw; } } return this.message; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.The end result of the posted asynchronous receive /// operation. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PeerMessageDispatcher.cs
- HttpModuleCollection.cs
- ManipulationVelocities.cs
- TimeSpanStorage.cs
- StringFormat.cs
- BrowserCapabilitiesFactoryBase.cs
- CombinedGeometry.cs
- TableRow.cs
- XsdSchemaFileEditor.cs
- PropertyRecord.cs
- CommonGetThemePartSize.cs
- MessageSmuggler.cs
- LoginName.cs
- HttpMethodAttribute.cs
- QilDataSource.cs
- ListBoxItem.cs
- MetadataArtifactLoaderComposite.cs
- TimelineClockCollection.cs
- _TLSstream.cs
- PopupRootAutomationPeer.cs
- AnnotationComponentManager.cs
- RoleExceptions.cs
- WaitHandle.cs
- PagesChangedEventArgs.cs
- ClearCollection.cs
- XmlTypeMapping.cs
- SHA256Cng.cs
- ProfileBuildProvider.cs
- SmiEventSink_Default.cs
- _ConnectionGroup.cs
- XamlPointCollectionSerializer.cs
- AggregateNode.cs
- MetaDataInfo.cs
- Rectangle.cs
- PropertyItemInternal.cs
- GeneratedCodeAttribute.cs
- DoubleLinkList.cs
- ScrollChangedEventArgs.cs
- ClusterUtils.cs
- DelegateBodyWriter.cs
- StorageInfo.cs
- SapiRecognizer.cs
- ColorConverter.cs
- MarginCollapsingState.cs
- CodeSnippetCompileUnit.cs
- DependencyObjectType.cs
- WindowsUpDown.cs
- ObjectDataSourceSelectingEventArgs.cs
- TextBlockAutomationPeer.cs
- Avt.cs
- HttpHandlerActionCollection.cs
- RangeBase.cs
- FolderBrowserDialog.cs
- Vector3DAnimationBase.cs
- SettingsSection.cs
- WizardStepCollectionEditor.cs
- XmlDataSourceView.cs
- PeerNearMe.cs
- VisualTransition.cs
- SmiContext.cs
- TabItem.cs
- httpapplicationstate.cs
- TransformedBitmap.cs
- PagerSettings.cs
- SiteMapNode.cs
- LocalizationParserHooks.cs
- ToolStripScrollButton.cs
- CorrelationManager.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataSetUtil.cs
- NotConverter.cs
- BookmarkScopeInfo.cs
- dataSvcMapFileLoader.cs
- ListViewDeletedEventArgs.cs
- WindowsAltTab.cs
- BindingExpressionUncommonField.cs
- ZipIOCentralDirectoryBlock.cs
- SlotInfo.cs
- PageCodeDomTreeGenerator.cs
- Buffer.cs
- JsonMessageEncoderFactory.cs
- RecordManager.cs
- DbConnectionPoolCounters.cs
- PenThreadPool.cs
- HtmlTableRow.cs
- SortedSet.cs
- DataServiceBuildProvider.cs
- OdbcDataAdapter.cs
- RequestCacheValidator.cs
- PresentationAppDomainManager.cs
- StrongNameUtility.cs
- HttpRuntime.cs
- PolyBezierSegmentFigureLogic.cs
- CodeFieldReferenceExpression.cs
- XsltLibrary.cs
- PeerCustomResolverBindingElement.cs
- DbMetaDataFactory.cs
- ImageFormatConverter.cs
- SignedXml.cs
- BitmapImage.cs