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
- CompareValidator.cs
- WindowsScroll.cs
- MobileControlsSectionHandler.cs
- ObjectNotFoundException.cs
- RelationshipSet.cs
- ComponentCollection.cs
- HealthMonitoringSectionHelper.cs
- ThousandthOfEmRealDoubles.cs
- DoWorkEventArgs.cs
- ContextStaticAttribute.cs
- HtmlImage.cs
- ObjectFullSpanRewriter.cs
- DataBoundControl.cs
- SetterBase.cs
- ObjectDataSourceEventArgs.cs
- MimeMapping.cs
- RegisteredHiddenField.cs
- TypographyProperties.cs
- QilTargetType.cs
- QilName.cs
- ThemeableAttribute.cs
- SecurityResources.cs
- UrlMappingCollection.cs
- COM2TypeInfoProcessor.cs
- RefExpr.cs
- FacetEnabledSchemaElement.cs
- TextAutomationPeer.cs
- ToolCreatedEventArgs.cs
- HttpPostedFile.cs
- MessageHeaderAttribute.cs
- X509Certificate2.cs
- ObjectComplexPropertyMapping.cs
- XmlJsonWriter.cs
- MultipartContentParser.cs
- Directory.cs
- Command.cs
- RequestCachePolicyConverter.cs
- PeerResolverMode.cs
- BitArray.cs
- CustomAttributeFormatException.cs
- ResourceContainer.cs
- PartialArray.cs
- GeneralTransform3DTo2D.cs
- PrintingPermissionAttribute.cs
- _LocalDataStore.cs
- EnumConverter.cs
- ClientTargetCollection.cs
- HttpPostedFile.cs
- GenericEnumConverter.cs
- Debug.cs
- DataGridViewSortCompareEventArgs.cs
- ListView.cs
- DbBuffer.cs
- BuilderPropertyEntry.cs
- AdCreatedEventArgs.cs
- GridViewRowPresenterBase.cs
- TextBounds.cs
- FontStretchConverter.cs
- ExportFileRequest.cs
- WorkflowViewManager.cs
- DataBoundControl.cs
- MulticastIPAddressInformationCollection.cs
- DiffuseMaterial.cs
- FrameworkElementFactory.cs
- StateManagedCollection.cs
- EntityContainer.cs
- RelationshipManager.cs
- GridViewRowPresenter.cs
- TemplateBuilder.cs
- CompilationRelaxations.cs
- AdornerLayer.cs
- BaseParser.cs
- SqlHelper.cs
- WebBrowserSiteBase.cs
- ThreadExceptionEvent.cs
- Profiler.cs
- MarginsConverter.cs
- ControlBuilderAttribute.cs
- XamlToRtfWriter.cs
- LinkDescriptor.cs
- CancellationToken.cs
- COM2IPerPropertyBrowsingHandler.cs
- WebPartMenu.cs
- Vector3DKeyFrameCollection.cs
- ContextMarshalException.cs
- TemplateApplicationHelper.cs
- _FtpDataStream.cs
- HMACMD5.cs
- HandlerMappingMemo.cs
- ResourceReader.cs
- EmptyReadOnlyDictionaryInternal.cs
- webeventbuffer.cs
- X509InitiatorCertificateClientElement.cs
- WebPartAuthorizationEventArgs.cs
- XmlSchemaSimpleContentRestriction.cs
- SignedPkcs7.cs
- UserMapPath.cs
- RecognizedAudio.cs
- PrimitiveType.cs
- MimeAnyImporter.cs