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
- PathFigure.cs
- BitStack.cs
- ExtensionDataReader.cs
- AddInControllerImpl.cs
- SqlDataSourceView.cs
- ListViewTableCell.cs
- XmlSchemaExporter.cs
- ClientFormsIdentity.cs
- DataList.cs
- DesignerContextDescriptor.cs
- RecordBuilder.cs
- UniqueConstraint.cs
- Byte.cs
- RoutedCommand.cs
- IsolatedStorageFile.cs
- BeginEvent.cs
- TypeSchema.cs
- SessionStateModule.cs
- MetadataExporter.cs
- TouchDevice.cs
- RowToParametersTransformer.cs
- XomlCompilerResults.cs
- GroupBox.cs
- SHA384.cs
- FocusChangedEventArgs.cs
- AddIn.cs
- Material.cs
- XamlToRtfWriter.cs
- FontSource.cs
- BoundingRectTracker.cs
- DataServiceContext.cs
- storepermission.cs
- DataViewSettingCollection.cs
- RegexBoyerMoore.cs
- XPathDocumentIterator.cs
- OleDbPropertySetGuid.cs
- SkewTransform.cs
- Switch.cs
- MaskedTextProvider.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ItemAutomationPeer.cs
- RelationshipManager.cs
- CustomAttribute.cs
- PasswordPropertyTextAttribute.cs
- InputLanguageCollection.cs
- BidOverLoads.cs
- NavigationEventArgs.cs
- RowVisual.cs
- SuppressMergeCheckAttribute.cs
- SqlClientWrapperSmiStream.cs
- OdbcPermission.cs
- SimpleRecyclingCache.cs
- StrokeCollectionConverter.cs
- TargetControlTypeAttribute.cs
- objectresult_tresulttype.cs
- CompilerTypeWithParams.cs
- _SingleItemRequestCache.cs
- MatrixTransform.cs
- NativeWrapper.cs
- ActivityFunc.cs
- HtmlSelectionListAdapter.cs
- SettingsPropertyValueCollection.cs
- SR.cs
- TerminatorSinks.cs
- GeneratedView.cs
- MessageSecurityOverTcpElement.cs
- CrossSiteScriptingValidation.cs
- TypedReference.cs
- XmlCodeExporter.cs
- CompositionTarget.cs
- DataDesignUtil.cs
- WebPartCatalogCloseVerb.cs
- DesignRelation.cs
- graph.cs
- RadioButton.cs
- FormViewPagerRow.cs
- ContainerUIElement3D.cs
- FontStyles.cs
- Operator.cs
- tibetanshape.cs
- SpeechRecognitionEngine.cs
- Timeline.cs
- HttpModulesSection.cs
- BinaryReader.cs
- AutoGeneratedFieldProperties.cs
- SoapSchemaMember.cs
- XmlAttribute.cs
- ImageButton.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DiscoveryExceptionDictionary.cs
- ReadOnlyDataSourceView.cs
- RelationshipWrapper.cs
- ImageSourceValueSerializer.cs
- TriggerCollection.cs
- UserControlDesigner.cs
- AsymmetricSignatureFormatter.cs
- OdbcRowUpdatingEvent.cs
- PersonalizationState.cs
- TemplateColumn.cs
- DesignerRegion.cs