Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / Dispatcher / ServiceErrorHandler.cs / 1305376 / ServiceErrorHandler.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System; using System.ServiceModel.Channels; using System.Collections; class ServiceErrorHandler : DurableErrorHandler { const string dataKey = "System.ServiceModel.Dispatcher.ServiceErrorHandler.MarkExeption"; public ServiceErrorHandler(bool debug) : base(debug) { } public static void MarkException(Exception toMark) { // From MSDN: The OutOfMemoryException, StackOverflowException and ThreadAbortException // classes always return a null reference for the value of the Data property. // These are fatal exceptions and therefore we don't care that we can't mark them. IDictionary data = toMark.Data; if (data != null && !data.IsReadOnly && !data.IsFixedSize) { data.Add(dataKey, true); } } protected override bool IsUserCodeException(Exception error) { IDictionary data = error.Data; if (data != null && data.Contains(dataKey)) { return true; } return false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebException.cs
- HostingPreferredMapPath.cs
- ProfileSection.cs
- DesignerAutoFormat.cs
- ThicknessConverter.cs
- NullReferenceException.cs
- ComPlusAuthorization.cs
- SymbolMethod.cs
- RequestCache.cs
- SelectionEditingBehavior.cs
- SectionUpdates.cs
- LayoutTable.cs
- QueueAccessMode.cs
- CheckBoxList.cs
- AbandonedMutexException.cs
- AtlasWeb.Designer.cs
- XPathNavigatorReader.cs
- Int32CAMarshaler.cs
- EncoderParameter.cs
- AnimationClockResource.cs
- DataList.cs
- EventMappingSettings.cs
- Win32.cs
- Empty.cs
- CompilerErrorCollection.cs
- BaseContextMenu.cs
- TableCellAutomationPeer.cs
- InfoCardConstants.cs
- StickyNoteHelper.cs
- RawUIStateInputReport.cs
- StickyNoteContentControl.cs
- EntityRecordInfo.cs
- DataMemberFieldEditor.cs
- FirstMatchCodeGroup.cs
- ActivityExecutorOperation.cs
- FontUnit.cs
- HttpMethodConstraint.cs
- LayoutTableCell.cs
- UserControlFileEditor.cs
- OneOfTypeConst.cs
- BamlCollectionHolder.cs
- DoubleCollectionConverter.cs
- AutomationAttributeInfo.cs
- CatalogPart.cs
- StylusPlugInCollection.cs
- CorePropertiesFilter.cs
- PasswordBox.cs
- DocumentXPathNavigator.cs
- StorageConditionPropertyMapping.cs
- LayoutManager.cs
- Model3D.cs
- Keyboard.cs
- DataGridColumnFloatingHeader.cs
- SqlDataSourceCommandEventArgs.cs
- X509CertificateValidator.cs
- XmlSchemaType.cs
- ResourceReferenceExpressionConverter.cs
- PropertyCollection.cs
- InkSerializer.cs
- WinInetCache.cs
- TextOutput.cs
- SecurityIdentifierConverter.cs
- RectangleF.cs
- CryptoKeySecurity.cs
- GridViewAutomationPeer.cs
- TemplatePagerField.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- DbDataReader.cs
- SoapWriter.cs
- SafeNativeMethods.cs
- WindowsTitleBar.cs
- CatalogPartDesigner.cs
- XmlStringTable.cs
- DataGridColumnHeader.cs
- ViewStateAttachedPropertyFeature.cs
- TemplatedAdorner.cs
- ActivityDesignerAccessibleObject.cs
- TripleDES.cs
- TreePrinter.cs
- BridgeDataReader.cs
- RenameRuleObjectDialog.cs
- Encoder.cs
- CaretElement.cs
- CodeAttachEventStatement.cs
- ConnectionManager.cs
- OverrideMode.cs
- LabelExpression.cs
- filewebrequest.cs
- ClientSponsor.cs
- SystemColors.cs
- xsdvalidator.cs
- HashMembershipCondition.cs
- BitmapEffectInputData.cs
- PagedDataSource.cs
- TransformerInfoCollection.cs
- HostedElements.cs
- Compensate.cs
- CommandField.cs
- EntityDesignerUtils.cs
- CustomErrorsSection.cs