Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Activities / System / ServiceModel / Activities / CorrelationRequestContext.cs / 1305376 / CorrelationRequestContext.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Activities { using System; using System.Runtime; using System.ServiceModel; using System.ServiceModel.Activities.Dispatcher; using System.ServiceModel.Channels; // These are information passed from Send to Receive class CorrelationRequestContext { AsyncWaitHandle receivedReplyEvent; Exception exceptionOnReply; public CorrelationRequestContext() { } public OperationContext OperationContext { get; set; } public Message Reply { get; set; } public Exception Exception { get; set; } public CorrelationKeyCalculator CorrelationKeyCalculator { get; set; } public void EnsureAsyncWaitHandle() { this.receivedReplyEvent = new AsyncWaitHandle(); } public bool TryGetReply() { if (this.exceptionOnReply != null) { throw FxTrace.Exception.AsError(this.exceptionOnReply); } return this.Reply != null; } public bool WaitForReplyAsync(Action
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MultiBindingExpression.cs
- XmlSerializerSection.cs
- MethodExpr.cs
- OdbcConnectionOpen.cs
- ToolStripGripRenderEventArgs.cs
- WeakReferenceKey.cs
- ThemeableAttribute.cs
- GroupQuery.cs
- ApplicationBuildProvider.cs
- Convert.cs
- DisposableCollectionWrapper.cs
- HtmlPageAdapter.cs
- DetailsViewActionList.cs
- AppDomainAttributes.cs
- BoolExpr.cs
- SafeSystemMetrics.cs
- DnsPermission.cs
- SystemWebCachingSectionGroup.cs
- DataGridTablesFactory.cs
- CodePropertyReferenceExpression.cs
- WorkflowServiceNamespace.cs
- SystemColors.cs
- DropDownList.cs
- RoleBoolean.cs
- Char.cs
- ProxyHwnd.cs
- DesignTimeTemplateParser.cs
- ClosureBinding.cs
- AxHost.cs
- WindowsClaimSet.cs
- CodeParameterDeclarationExpression.cs
- ThrowHelper.cs
- SystemUnicastIPAddressInformation.cs
- FunctionQuery.cs
- MobileRedirect.cs
- XmlSerializerFactory.cs
- BufferedGraphics.cs
- BamlResourceDeserializer.cs
- SqlCharStream.cs
- TableParaClient.cs
- DataPagerField.cs
- SendMailErrorEventArgs.cs
- Rect3DConverter.cs
- SrgsItemList.cs
- TemplateBuilder.cs
- ArraySet.cs
- BitmapEffectOutputConnector.cs
- XmlEventCache.cs
- streamingZipPartStream.cs
- ArrayHelper.cs
- ClientTarget.cs
- WebHttpBehavior.cs
- CommonDialog.cs
- EntityDataSourceWizardForm.cs
- OracleParameterBinding.cs
- RequestCacheEntry.cs
- HttpListenerElement.cs
- XmlHierarchicalDataSourceView.cs
- ActivityXRefPropertyEditor.cs
- KnownBoxes.cs
- WsatRegistrationHeader.cs
- ThreadExceptionDialog.cs
- DataGridTextBoxColumn.cs
- SoapReflectionImporter.cs
- CompilerWrapper.cs
- safesecurityhelperavalon.cs
- LinqDataSourceView.cs
- ToolStripArrowRenderEventArgs.cs
- FilteredSchemaElementLookUpTable.cs
- CookieHandler.cs
- ClientTargetSection.cs
- GenericUI.cs
- WorkflowCompensationBehavior.cs
- ReadOnlyPermissionSet.cs
- WindowClosedEventArgs.cs
- Int64AnimationUsingKeyFrames.cs
- PropertyIdentifier.cs
- ExpanderAutomationPeer.cs
- ProcessModuleCollection.cs
- relpropertyhelper.cs
- LassoSelectionBehavior.cs
- FileIOPermission.cs
- SetStateEventArgs.cs
- ApplicationServiceManager.cs
- XmlCountingReader.cs
- SerializationAttributes.cs
- StateRuntime.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- PageCopyCount.cs
- webeventbuffer.cs
- DebugView.cs
- Button.cs
- CodeDOMProvider.cs
- FormViewRow.cs
- DataSourceCacheDurationConverter.cs
- HostingPreferredMapPath.cs
- CodeExporter.cs
- HierarchicalDataBoundControl.cs
- TextShapeableCharacters.cs