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
- UmAlQuraCalendar.cs
- SmtpAuthenticationManager.cs
- RTLAwareMessageBox.cs
- DataControlFieldHeaderCell.cs
- Bold.cs
- FlowLayout.cs
- SQLInt32.cs
- WebPartConnectVerb.cs
- PolicyManager.cs
- TextBlock.cs
- TaiwanCalendar.cs
- PageAsyncTaskManager.cs
- FacetChecker.cs
- MostlySingletonList.cs
- Configuration.cs
- PartEditor.cs
- BatchParser.cs
- QilUnary.cs
- ValidationSummary.cs
- HashCryptoHandle.cs
- DelegateTypeInfo.cs
- ColumnPropertiesGroup.cs
- ImageConverter.cs
- CompleteWizardStep.cs
- CompiledQueryCacheEntry.cs
- ImageList.cs
- DefaultAssemblyResolver.cs
- Action.cs
- DebugControllerThread.cs
- XmlCountingReader.cs
- Int64.cs
- KnownTypeDataContractResolver.cs
- ObjectPropertyMapping.cs
- SafeFileMappingHandle.cs
- SmiMetaData.cs
- CodeTypeDeclaration.cs
- HTTPNotFoundHandler.cs
- EntityDataSourceContainerNameConverter.cs
- CompiledELinqQueryState.cs
- DetailsViewRowCollection.cs
- TracePayload.cs
- QilGenerator.cs
- RectAnimationBase.cs
- CallContext.cs
- StateMachineWorkflowInstance.cs
- FieldMetadata.cs
- NamespaceDecl.cs
- documentsequencetextcontainer.cs
- BindingListCollectionView.cs
- EntityClassGenerator.cs
- DurableInstanceProvider.cs
- ComAdminWrapper.cs
- DiscoveryDocument.cs
- WeakEventTable.cs
- DataGridAddNewRow.cs
- NamedPipeTransportElement.cs
- remotingproxy.cs
- WmlTextViewAdapter.cs
- TextBox.cs
- MimeWriter.cs
- XmlWrappingReader.cs
- EntityKeyElement.cs
- ObjectConverter.cs
- SerializationStore.cs
- ResourceDescriptionAttribute.cs
- DnsCache.cs
- BufferModeSettings.cs
- RadioButtonAutomationPeer.cs
- ExceptionHandlerDesigner.cs
- DesignConnectionCollection.cs
- TextDecoration.cs
- ChangeProcessor.cs
- DataSetUtil.cs
- PreDigestedSignedInfo.cs
- UriTemplateTable.cs
- SecureStringHasher.cs
- ReflectionServiceProvider.cs
- AvTraceDetails.cs
- NullReferenceException.cs
- SrgsElementList.cs
- XmlCharacterData.cs
- DataBoundLiteralControl.cs
- DefaultValueAttribute.cs
- TextDecorationCollection.cs
- References.cs
- FileFormatException.cs
- TemplateBamlRecordReader.cs
- CodeSubDirectory.cs
- TypeTypeConverter.cs
- DriveInfo.cs
- ResXBuildProvider.cs
- InputLangChangeRequestEvent.cs
- TreeNodeSelectionProcessor.cs
- ReceiveParametersContent.cs
- FileChangesMonitor.cs
- CodeSnippetTypeMember.cs
- EntityContainerAssociationSet.cs
- DispatcherFrame.cs
- CommandBindingCollection.cs
- ModelChangedEventArgsImpl.cs