Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / SecurityChannelFaultConverter.cs / 1 / SecurityChannelFaultConverter.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------- namespace System.ServiceModel.Channels { using System; using System.ServiceModel; using System.ServiceModel.Security; internal class SecurityChannelFaultConverter : FaultConverter { IChannel innerChannel; internal SecurityChannelFaultConverter(IChannel innerChannel) { this.innerChannel = innerChannel; } protected override bool OnTryCreateException(Message message, MessageFault fault, out Exception exception) { if (this.innerChannel == null) { exception = null; return false; } FaultConverter inner = this.innerChannel.GetProperty(); if (inner != null) { return inner.TryCreateException(message, fault, out exception); } else { exception = null; return false; } } protected override bool OnTryCreateFaultMessage(Exception exception, out Message message) { if (this.innerChannel == null) { message = null; return false; } FaultConverter inner = innerChannel.GetProperty (); if (inner != null) { return inner.TryCreateFaultMessage(exception, out message); } else { message = null; return false; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- cookie.cs
- DataGridViewSelectedCellCollection.cs
- SoundPlayer.cs
- DocumentAutomationPeer.cs
- HighlightVisual.cs
- StaticResourceExtension.cs
- WebBrowserPermission.cs
- ActiveXHelper.cs
- HtmlImage.cs
- VirtualPathUtility.cs
- SqlMetaData.cs
- BrowserCapabilitiesFactory.cs
- BinaryEditor.cs
- SynchronizationLockException.cs
- ScriptMethodAttribute.cs
- AppSecurityManager.cs
- TaiwanLunisolarCalendar.cs
- TrackingStringDictionary.cs
- webbrowsersite.cs
- ScrollContentPresenter.cs
- ConfigurationConverterBase.cs
- TypeLoadException.cs
- ImageInfo.cs
- PropertyBuilder.cs
- DesignBindingValueUIHandler.cs
- XmlSchemaIdentityConstraint.cs
- DesignObjectWrapper.cs
- DesigntimeLicenseContext.cs
- PositiveTimeSpanValidator.cs
- Stroke2.cs
- EncoderFallback.cs
- ParameterEditorUserControl.cs
- ToolStrip.cs
- MultilineStringConverter.cs
- KeyedPriorityQueue.cs
- GcSettings.cs
- DataTableTypeConverter.cs
- ItemTypeToolStripMenuItem.cs
- BackStopAuthenticationModule.cs
- Metafile.cs
- SafeUserTokenHandle.cs
- FormsAuthenticationUser.cs
- PrimitiveType.cs
- EventLogSession.cs
- ObjectSpanRewriter.cs
- Relationship.cs
- ResourceWriter.cs
- DataGridViewTopRowAccessibleObject.cs
- HotCommands.cs
- FontEditor.cs
- SqlCachedBuffer.cs
- odbcmetadatacollectionnames.cs
- TimeSpan.cs
- ErrorCodes.cs
- DoubleAnimationClockResource.cs
- RotateTransform.cs
- XPathDocument.cs
- ResourceProviderFactory.cs
- SystemColorTracker.cs
- DataGrid.cs
- DateTimeConverter2.cs
- SystemPens.cs
- VectorAnimation.cs
- Font.cs
- ACE.cs
- DrawToolTipEventArgs.cs
- LocalizableResourceBuilder.cs
- ConfigXmlWhitespace.cs
- Subtree.cs
- HttpRuntime.cs
- ScriptRegistrationManager.cs
- ScriptDescriptor.cs
- MessageDesigner.cs
- SqlBooleanizer.cs
- SessionStateUtil.cs
- ObjectDataSourceSelectingEventArgs.cs
- LineMetrics.cs
- XPathDocumentBuilder.cs
- TextDecorationLocationValidation.cs
- DesignerForm.cs
- DataGridColumnsPage.cs
- Matrix3D.cs
- AsyncPostBackErrorEventArgs.cs
- TemplateXamlParser.cs
- Opcode.cs
- httpstaticobjectscollection.cs
- DirectionalLight.cs
- SemaphoreFullException.cs
- BreakRecordTable.cs
- MethodToken.cs
- HashSetDebugView.cs
- XamlFxTrace.cs
- OperationDescriptionCollection.cs
- User.cs
- GregorianCalendar.cs
- JsonQNameDataContract.cs
- TextParagraph.cs
- DynamicValueConverter.cs
- ScrollChrome.cs
- CompleteWizardStep.cs