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
- AuthenticateEventArgs.cs
- ExpandCollapseProviderWrapper.cs
- AccessDataSourceView.cs
- MasterPageCodeDomTreeGenerator.cs
- FormsAuthenticationTicket.cs
- ManagementInstaller.cs
- SqlNodeTypeOperators.cs
- EventLogPermissionHolder.cs
- PageCatalogPart.cs
- XmlSchemaComplexContentRestriction.cs
- PermissionSetEnumerator.cs
- XmlSerializableServices.cs
- Error.cs
- PointConverter.cs
- IndentedWriter.cs
- Expander.cs
- NotifyParentPropertyAttribute.cs
- SrgsDocument.cs
- GroupDescription.cs
- LayoutTableCell.cs
- CollectionContainer.cs
- BevelBitmapEffect.cs
- CharacterHit.cs
- SqlCachedBuffer.cs
- ProviderBase.cs
- StateMachineSubscriptionManager.cs
- BevelBitmapEffect.cs
- DataServiceStreamResponse.cs
- SchemaImporter.cs
- mactripleDES.cs
- TreeIterators.cs
- SafeHandles.cs
- ConnectionConsumerAttribute.cs
- FrameworkContentElement.cs
- WhitespaceReader.cs
- WebPartMovingEventArgs.cs
- TableItemProviderWrapper.cs
- JsonReader.cs
- ClientScriptManager.cs
- _UncName.cs
- ColumnCollectionEditor.cs
- DataGridViewTextBoxCell.cs
- ToolBar.cs
- HelpEvent.cs
- EventMappingSettings.cs
- SemanticResultValue.cs
- DomainUpDown.cs
- DataBoundControlAdapter.cs
- PolicyStatement.cs
- ReservationCollection.cs
- ElementMarkupObject.cs
- XhtmlBasicLiteralTextAdapter.cs
- Themes.cs
- UpdateProgress.cs
- InvokeBase.cs
- TranslateTransform3D.cs
- ProtocolsSection.cs
- ProtocolState.cs
- BmpBitmapEncoder.cs
- SystemBrushes.cs
- TraceUtility.cs
- CommandSet.cs
- SystemEvents.cs
- OuterGlowBitmapEffect.cs
- ParameterCollection.cs
- XPathBuilder.cs
- HexParser.cs
- GlobalProxySelection.cs
- Sql8ConformanceChecker.cs
- TaiwanCalendar.cs
- MarkupCompilePass1.cs
- ParameterBuilder.cs
- DependencyPropertyHelper.cs
- Variant.cs
- MenuItemCollection.cs
- Pkcs7Recipient.cs
- CommandTreeTypeHelper.cs
- TextTreeUndoUnit.cs
- PropertySourceInfo.cs
- CollectionConverter.cs
- ComplexPropertyEntry.cs
- AttachedAnnotation.cs
- ColorPalette.cs
- EditorZoneAutoFormat.cs
- StrokeCollectionConverter.cs
- TransactionWaitAsyncResult.cs
- AssemblyResolver.cs
- XmlRootAttribute.cs
- UIntPtr.cs
- SessionPageStateSection.cs
- Deserializer.cs
- StaticFileHandler.cs
- SoapAttributes.cs
- ListBindingConverter.cs
- Interlocked.cs
- TableCellCollection.cs
- List.cs
- RepeatButton.cs
- TypeValidationEventArgs.cs
- RepeatButton.cs