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
- StylusButton.cs
- CqlGenerator.cs
- FontSourceCollection.cs
- WmpBitmapEncoder.cs
- UnsafeCollabNativeMethods.cs
- CodeDomSerializer.cs
- CaseInsensitiveComparer.cs
- FactoryId.cs
- CursorConverter.cs
- SudsCommon.cs
- Missing.cs
- MasterPageCodeDomTreeGenerator.cs
- CodeAccessPermission.cs
- ToolStripPanelCell.cs
- DocumentOrderQuery.cs
- DecoderFallback.cs
- XmlBoundElement.cs
- ReadWriteObjectLock.cs
- GuidConverter.cs
- DesignerAttribute.cs
- FunctionImportElement.cs
- AsyncStreamReader.cs
- Dictionary.cs
- StringOutput.cs
- SystemTcpStatistics.cs
- WebServicesSection.cs
- PropertyDescriptorGridEntry.cs
- TableItemPattern.cs
- SystemException.cs
- InheritedPropertyChangedEventArgs.cs
- HashCodeCombiner.cs
- XmlDocumentViewSchema.cs
- DecodeHelper.cs
- RtfToken.cs
- OleDbException.cs
- Serialization.cs
- GeometryGroup.cs
- InputBuffer.cs
- Internal.cs
- VirtualDirectoryMappingCollection.cs
- ScriptControlDescriptor.cs
- SqlUtil.cs
- CodePrimitiveExpression.cs
- querybuilder.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DbDataSourceEnumerator.cs
- VersionedStreamOwner.cs
- HttpListenerRequestTraceRecord.cs
- SocketElement.cs
- EventLogConfiguration.cs
- ToolStripMenuItem.cs
- FrameDimension.cs
- TextProperties.cs
- StylusPlugin.cs
- DataObjectEventArgs.cs
- PerspectiveCamera.cs
- TableLayoutPanelCodeDomSerializer.cs
- DelayedRegex.cs
- SevenBitStream.cs
- WorkflowViewStateService.cs
- DispatcherSynchronizationContext.cs
- DataGridViewCellParsingEventArgs.cs
- SqlExpressionNullability.cs
- _ListenerAsyncResult.cs
- GradientStopCollection.cs
- Solver.cs
- EntityContainerEntitySet.cs
- HwndSource.cs
- WindowsListViewItem.cs
- DataServiceBehavior.cs
- DelimitedListTraceListener.cs
- ContextBase.cs
- PageOrientation.cs
- ConfigXmlReader.cs
- SafeThemeHandle.cs
- CleanUpVirtualizedItemEventArgs.cs
- DifferencingCollection.cs
- DBDataPermission.cs
- PageHandlerFactory.cs
- WrappedKeySecurityTokenParameters.cs
- XmlILStorageConverter.cs
- HostDesigntimeLicenseContext.cs
- ContextMenu.cs
- BuildProvider.cs
- MenuItemBindingCollection.cs
- CodeTypeParameter.cs
- XPathConvert.cs
- Stack.cs
- PerSessionInstanceContextProvider.cs
- WindowsFormsSynchronizationContext.cs
- GACMembershipCondition.cs
- DictionaryContent.cs
- CaretElement.cs
- GrammarBuilderPhrase.cs
- EntityCollectionChangedParams.cs
- MexNamedPipeBindingCollectionElement.cs
- CodeComment.cs
- _Events.cs
- DirectoryRedirect.cs
- DiscoveryMessageSequence11.cs