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
- StylusButton.cs
- NullPackagingPolicy.cs
- DbgCompiler.cs
- Parser.cs
- SafeHandles.cs
- AuthenticationService.cs
- AstTree.cs
- StringFreezingAttribute.cs
- AssociationSetMetadata.cs
- ReliableMessagingVersionConverter.cs
- String.cs
- CfgParser.cs
- SerialPort.cs
- RenderingEventArgs.cs
- KeyGestureConverter.cs
- WeakReferenceEnumerator.cs
- DocumentEventArgs.cs
- AvTraceFormat.cs
- AdapterDictionary.cs
- DashStyle.cs
- DynamicResourceExtension.cs
- SqlCacheDependencySection.cs
- WeakEventTable.cs
- BaseHashHelper.cs
- DispatcherExceptionFilterEventArgs.cs
- ComponentChangedEvent.cs
- TrustLevelCollection.cs
- ProtocolsConfigurationEntry.cs
- XsdBuilder.cs
- PublisherMembershipCondition.cs
- SmiConnection.cs
- ActivityMarkupSerializer.cs
- QueryExtender.cs
- ToolboxService.cs
- SelectionWordBreaker.cs
- Processor.cs
- ContractMapping.cs
- SoapIgnoreAttribute.cs
- HtmlInputPassword.cs
- ListDictionary.cs
- TransactionChannelFaultConverter.cs
- ValidatingReaderNodeData.cs
- LockedHandleGlyph.cs
- SwitchAttribute.cs
- TabItemWrapperAutomationPeer.cs
- SessionPageStatePersister.cs
- ResizeGrip.cs
- PersonalizationStateInfo.cs
- MultiTargetingUtil.cs
- DictionaryTraceRecord.cs
- _RequestCacheProtocol.cs
- DataSourceView.cs
- GcHandle.cs
- ApplicationManager.cs
- EventLogTraceListener.cs
- Int16AnimationBase.cs
- CommandEventArgs.cs
- UIElementCollection.cs
- RootProfilePropertySettingsCollection.cs
- QueryAsyncResult.cs
- VisualState.cs
- ProcessModelInfo.cs
- TraceListener.cs
- EventLogStatus.cs
- ThreadStateException.cs
- ScriptManager.cs
- XsdValidatingReader.cs
- StringValueSerializer.cs
- PolyQuadraticBezierSegment.cs
- base64Transforms.cs
- SuppressMergeCheckAttribute.cs
- NavigationWindowAutomationPeer.cs
- MouseActionConverter.cs
- InstanceDescriptor.cs
- HistoryEventArgs.cs
- SecurityDocument.cs
- NegotiationTokenAuthenticator.cs
- ReaderWriterLock.cs
- TabControlCancelEvent.cs
- Utility.cs
- TransformDescriptor.cs
- HtmlMobileTextWriter.cs
- ColumnHeaderConverter.cs
- SocketElement.cs
- SiteMapHierarchicalDataSourceView.cs
- LoadRetryStrategyFactory.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- OleDbFactory.cs
- CompilationLock.cs
- DependencyPropertyDescriptor.cs
- BuildManager.cs
- PseudoWebRequest.cs
- EventDescriptor.cs
- XhtmlBasicSelectionListAdapter.cs
- FactoryGenerator.cs
- HtmlSelect.cs
- DbInsertCommandTree.cs
- ParserStreamGeometryContext.cs
- QueryOperationResponseOfT.cs
- SimpleHandlerFactory.cs