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
- UncommonField.cs
- SystemIPInterfaceStatistics.cs
- SecUtil.cs
- BulletChrome.cs
- RtfControls.cs
- Line.cs
- keycontainerpermission.cs
- PackageRelationshipCollection.cs
- IntPtr.cs
- coordinatorfactory.cs
- XamlPointCollectionSerializer.cs
- ControlBindingsCollection.cs
- AnonymousIdentificationModule.cs
- FixedTextSelectionProcessor.cs
- DataGridViewSortCompareEventArgs.cs
- COM2TypeInfoProcessor.cs
- Button.cs
- TemplateColumn.cs
- WebPartConnectionsCancelEventArgs.cs
- QilName.cs
- PenThreadWorker.cs
- XmlSchemaGroup.cs
- ErasingStroke.cs
- SqlDataSourceConfigureFilterForm.cs
- ModuleBuilderData.cs
- CompositionTarget.cs
- XmlTextAttribute.cs
- PasswordRecovery.cs
- BrowserInteropHelper.cs
- ResolveNameEventArgs.cs
- RegexBoyerMoore.cs
- ACL.cs
- DefaultValueAttribute.cs
- PartialArray.cs
- Accessors.cs
- ToolStripItemClickedEventArgs.cs
- NativeMethodsCLR.cs
- SafeMILHandleMemoryPressure.cs
- Overlapped.cs
- ComponentCommands.cs
- StateInitializationDesigner.cs
- TypeUsageBuilder.cs
- SetIterators.cs
- SafeRightsManagementHandle.cs
- Int16AnimationUsingKeyFrames.cs
- SpecularMaterial.cs
- MemberMaps.cs
- SByte.cs
- HtmlControl.cs
- UDPClient.cs
- DataGrid.cs
- HttpCacheParams.cs
- LoginCancelEventArgs.cs
- StickyNoteHelper.cs
- SortExpressionBuilder.cs
- GeometryModel3D.cs
- DirectoryObjectSecurity.cs
- SettingsBase.cs
- TouchesCapturedWithinProperty.cs
- DnsElement.cs
- ApplicationSecurityManager.cs
- SizeF.cs
- ButtonFlatAdapter.cs
- SystemIcmpV6Statistics.cs
- PageHandlerFactory.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- RectangleGeometry.cs
- HttpWriter.cs
- _NegoStream.cs
- SortFieldComparer.cs
- StringBlob.cs
- SpecialFolderEnumConverter.cs
- ExtractorMetadata.cs
- ReflectPropertyDescriptor.cs
- RewritingProcessor.cs
- XmlDataSource.cs
- ComponentEvent.cs
- KeyMatchBuilder.cs
- ToolStripItemEventArgs.cs
- PropertyRef.cs
- GcHandle.cs
- HierarchicalDataTemplate.cs
- ServiceNotStartedException.cs
- StandardOleMarshalObject.cs
- SudsCommon.cs
- TableProviderWrapper.cs
- SecurityAccessDeniedException.cs
- LinkedList.cs
- dbdatarecord.cs
- EventPrivateKey.cs
- ChtmlTextWriter.cs
- AlternateView.cs
- StoreConnection.cs
- DataExchangeServiceBinder.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- HwndSource.cs
- TextRunCache.cs
- NonBatchDirectoryCompiler.cs
- HttpHandlersSection.cs
- EmptyImpersonationContext.cs