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
- CompilerGeneratedAttribute.cs
- XmlWrappingReader.cs
- SafeFindHandle.cs
- ScalarRestriction.cs
- TableSectionStyle.cs
- ListViewDataItem.cs
- SchemaObjectWriter.cs
- DateTimeFormatInfo.cs
- SpellCheck.cs
- ComponentEditorForm.cs
- SoapInteropTypes.cs
- SqlXml.cs
- WindowsFont.cs
- ThicknessAnimationBase.cs
- FixedSOMPage.cs
- InvalidTimeZoneException.cs
- Opcode.cs
- EntityClassGenerator.cs
- ListGeneralPage.cs
- TypeNameConverter.cs
- DataSourceView.cs
- SelectionListDesigner.cs
- ForwardPositionQuery.cs
- NullableDecimalAverageAggregationOperator.cs
- AccessibleObject.cs
- SqlConnectionString.cs
- SoapExtension.cs
- DivideByZeroException.cs
- GridViewDeleteEventArgs.cs
- SqlInternalConnectionSmi.cs
- DeleteMemberBinder.cs
- DataDocumentXPathNavigator.cs
- DesignerLoader.cs
- RootCodeDomSerializer.cs
- DataGridViewToolTip.cs
- SplineKeyFrames.cs
- ConfigurationUtility.cs
- XslNumber.cs
- HtmlInputFile.cs
- NumericUpDownAccelerationCollection.cs
- ComplusEndpointConfigContainer.cs
- WorkerRequest.cs
- _LocalDataStore.cs
- PersistenceProviderDirectory.cs
- TypeUtil.cs
- XXXOnTypeBuilderInstantiation.cs
- ListViewItemSelectionChangedEvent.cs
- InvalidCommandTreeException.cs
- BuiltInPermissionSets.cs
- FileSystemEventArgs.cs
- WindowCollection.cs
- BasicHttpMessageCredentialType.cs
- SafeLocalMemHandle.cs
- SettingsSavedEventArgs.cs
- ParameterReplacerVisitor.cs
- LocalizableAttribute.cs
- HostSecurityManager.cs
- validation.cs
- SystemParameters.cs
- LocatorPart.cs
- OleDbParameterCollection.cs
- AttachedPropertiesService.cs
- XmlObjectSerializerContext.cs
- EndPoint.cs
- DependencyPropertyKind.cs
- WindowsGraphics.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- MemberPathMap.cs
- StatusBarDrawItemEvent.cs
- ContentType.cs
- InstanceContextMode.cs
- WindowsListViewGroupHelper.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- MetadataException.cs
- DataSourceHelper.cs
- RequestFactory.cs
- TileBrush.cs
- IItemProperties.cs
- SerializerWriterEventHandlers.cs
- StringKeyFrameCollection.cs
- DesignerToolboxInfo.cs
- CryptoHelper.cs
- COAUTHIDENTITY.cs
- FilteredDataSetHelper.cs
- XmlTextReader.cs
- IpcChannelHelper.cs
- PageParserFilter.cs
- PageThemeBuildProvider.cs
- ellipse.cs
- ProgressiveCrcCalculatingStream.cs
- TypedTableHandler.cs
- Transform3DCollection.cs
- Currency.cs
- MenuBindingsEditor.cs
- FormsAuthenticationEventArgs.cs
- XmlObjectSerializerWriteContextComplex.cs
- SessionStateModule.cs
- InvokeGenerator.cs
- LifetimeServices.cs
- ToolStripRenderEventArgs.cs