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
- _ListenerResponseStream.cs
- ViewSimplifier.cs
- PersonalizationStateInfoCollection.cs
- ListenerAdapter.cs
- ApplicationBuildProvider.cs
- CalendarDateChangedEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- WebPartCatalogCloseVerb.cs
- CLSCompliantAttribute.cs
- CustomWebEventKey.cs
- WorkflowNamespace.cs
- ModuleElement.cs
- ISAPIApplicationHost.cs
- FillBehavior.cs
- EventDescriptor.cs
- TraceContextEventArgs.cs
- EndpointAddressProcessor.cs
- DtdParser.cs
- InputBinding.cs
- TriState.cs
- BindingManagerDataErrorEventArgs.cs
- LinqDataSourceDisposeEventArgs.cs
- VisualTreeHelper.cs
- InternalBufferOverflowException.cs
- File.cs
- COM2IDispatchConverter.cs
- ExtentJoinTreeNode.cs
- FileClassifier.cs
- CellParaClient.cs
- SigningCredentials.cs
- XmlAtomicValue.cs
- VBIdentifierDesigner.xaml.cs
- UIPropertyMetadata.cs
- SystemDiagnosticsSection.cs
- BuilderElements.cs
- ExitEventArgs.cs
- UnmanagedMemoryStream.cs
- StaticTextPointer.cs
- ImageDrawing.cs
- ControlAdapter.cs
- DataServiceClientException.cs
- SafeNativeMethods.cs
- PropertyOverridesTypeEditor.cs
- ElementUtil.cs
- Misc.cs
- TextContainerHelper.cs
- FontFaceLayoutInfo.cs
- ControlAdapter.cs
- AnimationLayer.cs
- SystemKeyConverter.cs
- RuleSettingsCollection.cs
- LastQueryOperator.cs
- ClientSession.cs
- mansign.cs
- TemplateContent.cs
- UICuesEvent.cs
- EventLogPermissionAttribute.cs
- WebPartUtil.cs
- StylusTip.cs
- SecurityContextSecurityToken.cs
- KernelTypeValidation.cs
- CalendarTable.cs
- InvokeCompletedEventArgs.cs
- TextRangeProviderWrapper.cs
- Compensate.cs
- FontNamesConverter.cs
- ActivitiesCollection.cs
- CookieProtection.cs
- RouteParameter.cs
- ExceptionUtil.cs
- MessageTransmitTraceRecord.cs
- TransformerInfo.cs
- SqlDataSourceStatusEventArgs.cs
- WizardSideBarListControlItem.cs
- AndCondition.cs
- ExeContext.cs
- BindingContext.cs
- RuntimeResourceSet.cs
- XPathExpr.cs
- Style.cs
- SqlCacheDependencySection.cs
- SqlParameterizer.cs
- RijndaelManagedTransform.cs
- DispatcherHooks.cs
- SafeHandles.cs
- DependencyPropertyChangedEventArgs.cs
- DataObject.cs
- Exceptions.cs
- HttpStaticObjectsCollectionWrapper.cs
- InitializationEventAttribute.cs
- EventRouteFactory.cs
- DisposableCollectionWrapper.cs
- LinkConverter.cs
- HttpApplicationFactory.cs
- CalendarKeyboardHelper.cs
- DataGridViewRowHeaderCell.cs
- KeyFrames.cs
- ExecutionContext.cs
- ApplyImportsAction.cs
- CmsUtils.cs