Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / CallbackDebugBehavior.cs / 1 / CallbackDebugBehavior.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Description { using System.ServiceModel.Channels; using System.ServiceModel; using System.ServiceModel.Dispatcher; using System.Runtime.Serialization; using System.Collections.ObjectModel; using System.Collections.Generic; public class CallbackDebugBehavior : IEndpointBehavior { bool includeExceptionDetailInFaults = false; public CallbackDebugBehavior(bool includeExceptionDetailInFaults) { this.includeExceptionDetailInFaults = includeExceptionDetailInFaults; } public bool IncludeExceptionDetailInFaults { get { return this.includeExceptionDetailInFaults; } set { this.includeExceptionDetailInFaults = value; } } void IEndpointBehavior.Validate(ServiceEndpoint serviceEndpoint) { } void IEndpointBehavior.AddBindingParameters(ServiceEndpoint serviceEndpoint, BindingParameterCollection bindingParameters) { } void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint serviceEndpoint, EndpointDispatcher endpointDispatcher) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException( SR.GetString(SR.SFXEndpointBehaviorUsedOnWrongSide, typeof(CallbackDebugBehavior).Name))); } void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint serviceEndpoint, ClientRuntime behavior) { ChannelDispatcher channelDispatcher = behavior.CallbackDispatchRuntime.ChannelDispatcher; if (channelDispatcher != null && this.includeExceptionDetailInFaults) { channelDispatcher.IncludeExceptionDetailInFaults = true; } } } } // 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
- RequestStatusBarUpdateEventArgs.cs
- DataObjectPastingEventArgs.cs
- TrackingStringDictionary.cs
- ColorConvertedBitmap.cs
- DataSourceConverter.cs
- FaultCode.cs
- ECDiffieHellmanCngPublicKey.cs
- ClientSponsor.cs
- ZoneMembershipCondition.cs
- InternalConfigHost.cs
- ScriptManager.cs
- ReadOnlyCollection.cs
- PeerContact.cs
- PeerNameResolver.cs
- IISMapPath.cs
- XmlArrayItemAttribute.cs
- ContextMenu.cs
- SqlInfoMessageEvent.cs
- CqlParser.cs
- RpcAsyncResult.cs
- GifBitmapEncoder.cs
- DecimalAnimationUsingKeyFrames.cs
- FtpRequestCacheValidator.cs
- HMACSHA384.cs
- DefinitionBase.cs
- ViewGenResults.cs
- SqlInternalConnectionTds.cs
- ComponentSerializationService.cs
- TlsnegoTokenAuthenticator.cs
- ListViewHitTestInfo.cs
- TransformerInfo.cs
- HtmlInputReset.cs
- AssertUtility.cs
- ProgressBarRenderer.cs
- TargetPerspective.cs
- CfgParser.cs
- StateMachine.cs
- SystemIPInterfaceStatistics.cs
- HttpListenerRequestUriBuilder.cs
- MailAddress.cs
- PathNode.cs
- QuaternionRotation3D.cs
- XmlAttributeProperties.cs
- SecurityElement.cs
- StandardRuntimeEnumValidatorAttribute.cs
- XmlRawWriter.cs
- XmlWriterDelegator.cs
- FileDialogPermission.cs
- MetadataPropertyAttribute.cs
- XPathNodeIterator.cs
- ListViewTableRow.cs
- Item.cs
- errorpatternmatcher.cs
- QilInvokeEarlyBound.cs
- XmlValueConverter.cs
- TypeListConverter.cs
- Lease.cs
- WinHttpWebProxyFinder.cs
- ModuleConfigurationInfo.cs
- DataServiceRequestException.cs
- DictionaryBase.cs
- GenericEnumerator.cs
- TextEndOfLine.cs
- RequestContext.cs
- FileVersionInfo.cs
- CharAnimationBase.cs
- HtmlControlPersistable.cs
- HttpWebRequestElement.cs
- CapabilitiesSection.cs
- ElementUtil.cs
- DataGridColumnDropSeparator.cs
- MouseEvent.cs
- DocumentXPathNavigator.cs
- ExceptionUtil.cs
- GlyphingCache.cs
- ServerValidateEventArgs.cs
- IRCollection.cs
- SystemIPAddressInformation.cs
- WebControlsSection.cs
- ProjectionPruner.cs
- NameValuePair.cs
- SecUtil.cs
- TextServicesHost.cs
- EditorResources.cs
- FactoryGenerator.cs
- OutputCacheProfileCollection.cs
- MissingManifestResourceException.cs
- BitmapSizeOptions.cs
- TextViewSelectionProcessor.cs
- UserControlBuildProvider.cs
- RectAnimationBase.cs
- DocumentNUp.cs
- SystemInformation.cs
- ListItemConverter.cs
- FamilyTypefaceCollection.cs
- SecUtil.cs
- StringSorter.cs
- TextPenaltyModule.cs
- ScalarOps.cs
- Formatter.cs