Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Discovery / System / ServiceModel / Discovery / DiscoveryCallbackBehavior.cs / 1305376 / DiscoveryCallbackBehavior.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Discovery { using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.ServiceModel.Dispatcher; class DiscoveryCallbackBehavior : IEndpointBehavior { CallbackBehaviorAttribute innerCallbackBehavior; public DiscoveryCallbackBehavior() { this.innerCallbackBehavior = new CallbackBehaviorAttribute(); this.innerCallbackBehavior.ConcurrencyMode = ConcurrencyMode.Multiple; this.innerCallbackBehavior.UseSynchronizationContext = false; } void IEndpointBehavior.AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters) { ((IEndpointBehavior)this.innerCallbackBehavior).AddBindingParameters(endpoint, bindingParameters); } void IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { ((IEndpointBehavior)this.innerCallbackBehavior).ApplyClientBehavior(endpoint, clientRuntime); } void IEndpointBehavior.ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { // no-op on the service side - the InnerCallbackBehavior throws on the service side. } void IEndpointBehavior.Validate(ServiceEndpoint endpoint) { ((IEndpointBehavior)this.innerCallbackBehavior).Validate(endpoint); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeDescriptor.cs
- TypeUtils.cs
- MemoryMappedView.cs
- SHA384.cs
- IconBitmapDecoder.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PointHitTestParameters.cs
- IndentedWriter.cs
- TcpConnectionPoolSettingsElement.cs
- LogPolicy.cs
- QilReplaceVisitor.cs
- NullableBoolConverter.cs
- OuterProxyWrapper.cs
- WindowsAuthenticationEventArgs.cs
- RangeValidator.cs
- HiddenFieldDesigner.cs
- WebPartVerbsEventArgs.cs
- SerializationInfoEnumerator.cs
- NativeActivityTransactionContext.cs
- OutputCacheProfile.cs
- DecimalFormatter.cs
- LinkLabelLinkClickedEvent.cs
- DiscardableAttribute.cs
- DateTimeConstantAttribute.cs
- WrappingXamlSchemaContext.cs
- LongValidator.cs
- ItemAutomationPeer.cs
- ExpressionVisitorHelpers.cs
- QuaternionIndependentAnimationStorage.cs
- BamlTreeMap.cs
- ScrollEvent.cs
- Wizard.cs
- CodeAttributeDeclarationCollection.cs
- DPCustomTypeDescriptor.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TileModeValidation.cs
- GlobalProxySelection.cs
- AspNetHostingPermission.cs
- SkipQueryOptionExpression.cs
- DocumentPageTextView.cs
- AnimationLayer.cs
- TextTreeText.cs
- XmlSchemaComplexType.cs
- Char.cs
- SqlUdtInfo.cs
- VirtualPathUtility.cs
- StreamingContext.cs
- ActionItem.cs
- MethodExpression.cs
- FullTrustAssembly.cs
- HitTestResult.cs
- CharConverter.cs
- PeerResolverSettings.cs
- CacheAxisQuery.cs
- EncodingNLS.cs
- ByteKeyFrameCollection.cs
- URLString.cs
- UserPersonalizationStateInfo.cs
- ChangeNode.cs
- UInt16Storage.cs
- FormCollection.cs
- NonceToken.cs
- ScriptingRoleServiceSection.cs
- RawStylusInputCustomDataList.cs
- SafeUserTokenHandle.cs
- SiteMembershipCondition.cs
- ColorConverter.cs
- PageOrientation.cs
- NCryptSafeHandles.cs
- ToolStripItemImageRenderEventArgs.cs
- BitVector32.cs
- TextRange.cs
- SystemIPAddressInformation.cs
- smtpconnection.cs
- BaseCAMarshaler.cs
- ParseNumbers.cs
- ConnectionPoolManager.cs
- EditorZone.cs
- DefaultTextStoreTextComposition.cs
- Point.cs
- Registry.cs
- TypeGeneratedEventArgs.cs
- AnnotationDocumentPaginator.cs
- ResXBuildProvider.cs
- VirtualDirectoryMapping.cs
- XPathNavigatorReader.cs
- FileDialog_Vista.cs
- Compiler.cs
- InvalidEnumArgumentException.cs
- VisualStyleTypesAndProperties.cs
- FormsAuthenticationConfiguration.cs
- XmlExpressionDumper.cs
- CustomWebEventKey.cs
- CompilationUtil.cs
- CornerRadius.cs
- DataRecord.cs
- SmtpFailedRecipientsException.cs
- NonVisualControlAttribute.cs
- BitmapPalettes.cs
- ScriptResourceInfo.cs