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
- TextSelectionHighlightLayer.cs
- BitSet.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- WorkflowPrinting.cs
- Asn1Utilities.cs
- PrintController.cs
- CodeDelegateInvokeExpression.cs
- ContainerUIElement3D.cs
- PersistenceTask.cs
- XmlSchemaDocumentation.cs
- DataRecordInternal.cs
- SqlRowUpdatedEvent.cs
- Stylesheet.cs
- SiteMapNode.cs
- PropertyPath.cs
- ProfileServiceManager.cs
- FactoryGenerator.cs
- ProfileParameter.cs
- GridLength.cs
- AutoGeneratedFieldProperties.cs
- SspiHelper.cs
- AddInEnvironment.cs
- PixelFormats.cs
- CodeDirectoryCompiler.cs
- DesignerCommandSet.cs
- ObjectDataProvider.cs
- CheckBoxField.cs
- NavigatorInput.cs
- UnmanagedMarshal.cs
- ObjectList.cs
- AssemblyBuilder.cs
- PermissionAttributes.cs
- Rule.cs
- CodeSubDirectory.cs
- ChangePassword.cs
- CallbackValidatorAttribute.cs
- InputBinder.cs
- KeyedCollection.cs
- FormsAuthenticationCredentials.cs
- DictionarySectionHandler.cs
- _StreamFramer.cs
- OperationFormatStyle.cs
- CompilerLocalReference.cs
- SiteMapProvider.cs
- TemplateControlBuildProvider.cs
- Version.cs
- TimeoutException.cs
- Number.cs
- CompositeCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- ActivationServices.cs
- AstTree.cs
- ItemTypeToolStripMenuItem.cs
- DBPropSet.cs
- XmlSchemaAny.cs
- XmlArrayItemAttribute.cs
- OdbcHandle.cs
- UnmanagedBitmapWrapper.cs
- ExpandSegmentCollection.cs
- DBCommand.cs
- Subset.cs
- SpeechRecognitionEngine.cs
- SubordinateTransaction.cs
- LazyTextWriterCreator.cs
- Vector3DAnimationUsingKeyFrames.cs
- Helpers.cs
- LayoutEngine.cs
- ObjectConverter.cs
- TableAdapterManagerNameHandler.cs
- CodePageEncoding.cs
- SemanticResultKey.cs
- ConsoleCancelEventArgs.cs
- RegexReplacement.cs
- SmiRecordBuffer.cs
- AudioFileOut.cs
- PeerResolverBindingElement.cs
- Animatable.cs
- ConditionalBranch.cs
- securitycriticaldata.cs
- PagePropertiesChangingEventArgs.cs
- XdrBuilder.cs
- ConfigurationCollectionAttribute.cs
- DefaultSerializationProviderAttribute.cs
- TypeValidationEventArgs.cs
- AutomationPeer.cs
- StructuredTypeEmitter.cs
- BitmapEffect.cs
- TokenBasedSet.cs
- SmiMetaDataProperty.cs
- ButtonStandardAdapter.cs
- RectangleGeometry.cs
- FunctionNode.cs
- AccessDataSourceWizardForm.cs
- Material.cs
- PerformanceCounterPermission.cs
- TableAutomationPeer.cs
- TimeManager.cs
- CounterNameConverter.cs
- SQLBinary.cs
- Error.cs