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
- EncoderBestFitFallback.cs
- XmlExtensionFunction.cs
- BitStream.cs
- SmtpMail.cs
- XmlUtil.cs
- MediaTimeline.cs
- RightsManagementEncryptedStream.cs
- CodeRemoveEventStatement.cs
- PriorityRange.cs
- TreeViewHitTestInfo.cs
- OperatingSystemVersionCheck.cs
- PropertyPathConverter.cs
- BeginEvent.cs
- ListMarkerLine.cs
- HtmlElementEventArgs.cs
- Image.cs
- DataSourceXmlClassAttribute.cs
- CLSCompliantAttribute.cs
- EdmTypeAttribute.cs
- AuthorizationRuleCollection.cs
- CharacterBuffer.cs
- SortQuery.cs
- EncodingStreamWrapper.cs
- MetabaseReader.cs
- ActivityTrace.cs
- WebPartChrome.cs
- MetadataPropertyCollection.cs
- PropertyContainer.cs
- GroupStyle.cs
- ZipIOFileItemStream.cs
- ControlCollection.cs
- SignatureToken.cs
- HttpClientCertificate.cs
- Thumb.cs
- XmlSerializerNamespaces.cs
- SecurityAppliedMessage.cs
- ProfilePropertySettings.cs
- InputBinder.cs
- NullableFloatSumAggregationOperator.cs
- SqlException.cs
- DataGridHeaderBorder.cs
- Odbc32.cs
- WindowsHyperlink.cs
- ContractReference.cs
- URIFormatException.cs
- IEnumerable.cs
- TemplateContainer.cs
- DataContractSerializerMessageContractImporter.cs
- SmtpSection.cs
- MultitargetingHelpers.cs
- SelectionEditor.cs
- DataGridViewToolTip.cs
- OraclePermissionAttribute.cs
- XamlToRtfParser.cs
- ExcCanonicalXml.cs
- DetailsViewActionList.cs
- HotCommands.cs
- EntityProviderFactory.cs
- RegexStringValidator.cs
- RowType.cs
- DataReceivedEventArgs.cs
- MessageBox.cs
- AssertUtility.cs
- MouseOverProperty.cs
- NumberSubstitution.cs
- HttpBrowserCapabilitiesWrapper.cs
- NetworkAddressChange.cs
- DataGridHyperlinkColumn.cs
- BamlLocalizationDictionary.cs
- C14NUtil.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CommandDevice.cs
- IPAddress.cs
- DeviceContext.cs
- XmlSchemaGroup.cs
- DbSource.cs
- InternalBufferOverflowException.cs
- PropertyDescriptorComparer.cs
- ElementNotEnabledException.cs
- XsltArgumentList.cs
- FontEmbeddingManager.cs
- ForceCopyBuildProvider.cs
- IIS7WorkerRequest.cs
- TableLayoutCellPaintEventArgs.cs
- GiveFeedbackEvent.cs
- BinaryMessageEncodingElement.cs
- XmlSchemaParticle.cs
- XmlSchemaGroupRef.cs
- Viewport3DVisual.cs
- MessageContractAttribute.cs
- StrokeCollection.cs
- TaiwanLunisolarCalendar.cs
- XmlElement.cs
- CodeSubDirectory.cs
- AuthenticationModuleElementCollection.cs
- GuidConverter.cs
- isolationinterop.cs
- SemanticAnalyzer.cs
- X509CertificateCollection.cs
- DrawListViewColumnHeaderEventArgs.cs