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
- DataTableReader.cs
- DetailsViewInsertEventArgs.cs
- UnicastIPAddressInformationCollection.cs
- DataSet.cs
- XmlSchemaComplexContentExtension.cs
- EntryIndex.cs
- FormClosedEvent.cs
- ExpressionList.cs
- translator.cs
- ExceptionValidationRule.cs
- HttpListenerException.cs
- regiisutil.cs
- UnmanagedHandle.cs
- AnonymousIdentificationModule.cs
- HtmlTable.cs
- CryptographicAttribute.cs
- CompleteWizardStep.cs
- ActionItem.cs
- ExpandoObject.cs
- StrongNameHelpers.cs
- TraceSection.cs
- MetadataItem_Static.cs
- DataGridViewButtonCell.cs
- Logging.cs
- Padding.cs
- TypeDescriptor.cs
- ProcessModuleDesigner.cs
- StreamResourceInfo.cs
- AnnotationResourceChangedEventArgs.cs
- AdPostCacheSubstitution.cs
- DataPagerFieldCollection.cs
- MemoryRecordBuffer.cs
- TrackBarRenderer.cs
- BinaryObjectWriter.cs
- TimeoutException.cs
- IPGlobalProperties.cs
- WebPartConnection.cs
- WorkflowTransactionService.cs
- NumberFormatInfo.cs
- SchemaNotation.cs
- AttributeConverter.cs
- AnimatedTypeHelpers.cs
- RotateTransform3D.cs
- FixedSOMLineRanges.cs
- PagesSection.cs
- OleDbPermission.cs
- FormViewDeleteEventArgs.cs
- StrokeFIndices.cs
- FixedSOMFixedBlock.cs
- diagnosticsswitches.cs
- InvalidAsynchronousStateException.cs
- EntitySet.cs
- UriTemplate.cs
- DataSourceSelectArguments.cs
- DockProviderWrapper.cs
- HttpModuleActionCollection.cs
- TcpWorkerProcess.cs
- SoapCodeExporter.cs
- GradientStop.cs
- TimeEnumHelper.cs
- ReflectionTypeLoadException.cs
- TemplateKey.cs
- XmlILOptimizerVisitor.cs
- DummyDataSource.cs
- Util.cs
- UnsafeNativeMethods.cs
- DispatchWrapper.cs
- DtdParser.cs
- PhysicalAddress.cs
- HtmlInputFile.cs
- SoapSchemaImporter.cs
- WizardForm.cs
- RectAnimationUsingKeyFrames.cs
- PropertyDescriptor.cs
- DataGridViewCellCollection.cs
- translator.cs
- ViewManager.cs
- OrCondition.cs
- _HTTPDateParse.cs
- SqlBuilder.cs
- ConfigXmlComment.cs
- HttpCacheParams.cs
- XmlQueryOutput.cs
- WebPartTransformerAttribute.cs
- EmbeddedMailObjectCollectionEditor.cs
- AddressAlreadyInUseException.cs
- StandardCommands.cs
- ProfileSection.cs
- OuterGlowBitmapEffect.cs
- HtmlTitle.cs
- WindowsFormsHelpers.cs
- Comparer.cs
- NegationPusher.cs
- URLEditor.cs
- RequestCacheManager.cs
- ConsumerConnectionPointCollection.cs
- DataBoundLiteralControl.cs
- WindowsFormsLinkLabel.cs
- CodeStatement.cs
- SmtpFailedRecipientException.cs