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
- DateTimeConverter.cs
- InitialServerConnectionReader.cs
- SoapDocumentServiceAttribute.cs
- CryptographicAttribute.cs
- ClientRequest.cs
- SafeRightsManagementPubHandle.cs
- GACIdentityPermission.cs
- SessionViewState.cs
- FontFamilyValueSerializer.cs
- WizardStepBase.cs
- PropertyDescriptor.cs
- ColumnMapProcessor.cs
- ClientRoleProvider.cs
- WebAdminConfigurationHelper.cs
- autovalidator.cs
- DecimalStorage.cs
- HttpPostedFile.cs
- TextParagraph.cs
- DataGridColumnCollection.cs
- NotEqual.cs
- XmlCharType.cs
- ZipIOExtraFieldElement.cs
- SmiRequestExecutor.cs
- StringUtil.cs
- ProcessModuleCollection.cs
- MappingException.cs
- BindingMAnagerBase.cs
- FontStretchConverter.cs
- ProbeDuplexAsyncResult.cs
- ConfigurationManagerHelper.cs
- FactoryRecord.cs
- ValidationEventArgs.cs
- WinInet.cs
- DefaultSection.cs
- RegexParser.cs
- CustomCredentialPolicy.cs
- SimpleTableProvider.cs
- DrawToolTipEventArgs.cs
- Stylus.cs
- HopperCache.cs
- VectorConverter.cs
- FixedTextView.cs
- NullEntityWrapper.cs
- Point3DKeyFrameCollection.cs
- ListQueryResults.cs
- TraceEventCache.cs
- Triangle.cs
- UserThread.cs
- FacetChecker.cs
- embossbitmapeffect.cs
- PointIndependentAnimationStorage.cs
- FormsAuthenticationEventArgs.cs
- CodeSnippetExpression.cs
- XmlDocumentSerializer.cs
- IDReferencePropertyAttribute.cs
- MethodCallTranslator.cs
- DrawToolTipEventArgs.cs
- ServiceBusyException.cs
- ErrorStyle.cs
- HtmlWindowCollection.cs
- EntityWrapperFactory.cs
- AutomationPatternInfo.cs
- PriorityRange.cs
- InkPresenterAutomationPeer.cs
- XmlHierarchicalDataSourceView.cs
- LineVisual.cs
- SiblingIterators.cs
- ByteStream.cs
- WSSecureConversation.cs
- DataServiceQueryOfT.cs
- PrincipalPermission.cs
- VisualBasicExpressionConverter.cs
- ListItem.cs
- LostFocusEventManager.cs
- DataSourceView.cs
- __ConsoleStream.cs
- DES.cs
- ConnectionManager.cs
- MapPathBasedVirtualPathProvider.cs
- DuplexChannelBinder.cs
- StringKeyFrameCollection.cs
- XamlInt32CollectionSerializer.cs
- XmlName.cs
- StyleHelper.cs
- IpcManager.cs
- FastPropertyAccessor.cs
- ConfigXmlComment.cs
- FlowchartDesigner.xaml.cs
- RequestCache.cs
- ResourceExpressionEditor.cs
- WebPartDisplayModeCancelEventArgs.cs
- VarInfo.cs
- GridViewHeaderRowPresenter.cs
- TraceUtility.cs
- OleStrCAMarshaler.cs
- DataSourceXmlSerializer.cs
- DesignerActionVerbItem.cs
- FunctionCommandText.cs
- SkewTransform.cs
- SqlParameter.cs