Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Dispatcher / OperationSelectorBehavior.cs / 1 / OperationSelectorBehavior.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System; using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.Collections.Generic; using System.Collections; using System.Reflection; class OperationSelectorBehavior : IContractBehavior { void IContractBehavior.Validate(ContractDescription description, ServiceEndpoint endpoint) { } void IContractBehavior.AddBindingParameters(ContractDescription description, ServiceEndpoint endpoint, BindingParameterCollection parameters) { } void IContractBehavior.ApplyDispatchBehavior(ContractDescription description, ServiceEndpoint endpoint, DispatchRuntime dispatch) { if (dispatch.ClientRuntime != null) dispatch.ClientRuntime.OperationSelector = new MethodInfoOperationSelector(description, MessageDirection.Output); } void IContractBehavior.ApplyClientBehavior(ContractDescription description, ServiceEndpoint endpoint, ClientRuntime proxy) { proxy.OperationSelector = new MethodInfoOperationSelector(description, MessageDirection.Input); } internal class MethodInfoOperationSelector : IClientOperationSelector { Dictionary
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WmlImageAdapter.cs
- ColumnProvider.cs
- ListViewInsertedEventArgs.cs
- UInt64Storage.cs
- Mouse.cs
- MouseCaptureWithinProperty.cs
- TaskSchedulerException.cs
- RemoteWebConfigurationHost.cs
- webbrowsersite.cs
- PropertyValueChangedEvent.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- OracleDataAdapter.cs
- Encoding.cs
- HtmlTitle.cs
- QueryStringParameter.cs
- FloaterParaClient.cs
- PropertyInfoSet.cs
- TemplateNameScope.cs
- WebPartMenuStyle.cs
- FormViewPageEventArgs.cs
- StreamGeometry.cs
- BinaryNode.cs
- Bidi.cs
- documentsequencetextcontainer.cs
- TokenBasedSet.cs
- NativeMethodsOther.cs
- DateTimeValueSerializer.cs
- DataGridViewCellParsingEventArgs.cs
- XmlUrlResolver.cs
- SmtpNtlmAuthenticationModule.cs
- CommonRemoteMemoryBlock.cs
- ContentDisposition.cs
- SessionEndedEventArgs.cs
- dataprotectionpermission.cs
- ControlParameter.cs
- Point4DConverter.cs
- PeerInputChannelListener.cs
- RightsManagementManager.cs
- TableCellCollection.cs
- StateMachineWorkflow.cs
- SqlSupersetValidator.cs
- DbTypeMap.cs
- ParsedAttributeCollection.cs
- DescendantQuery.cs
- ToolStripPanelRenderEventArgs.cs
- PageVisual.cs
- VirtualPathProvider.cs
- ExcludePathInfo.cs
- MessageSecurityOverTcp.cs
- Util.cs
- XmlSchemaSimpleContentRestriction.cs
- MatrixStack.cs
- ExportOptions.cs
- BindStream.cs
- ProxyAttribute.cs
- ToolboxBitmapAttribute.cs
- ComEventsInfo.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SqlFactory.cs
- HotSpotCollection.cs
- ContentFileHelper.cs
- EdmRelationshipRoleAttribute.cs
- SoapFormatExtensions.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TreeViewCancelEvent.cs
- ManagementNamedValueCollection.cs
- SliderAutomationPeer.cs
- TypedTableBase.cs
- X509Extension.cs
- Tile.cs
- StylusPlugInCollection.cs
- Effect.cs
- DefaultPropertyAttribute.cs
- CodeTypeConstructor.cs
- Mappings.cs
- EmptyControlCollection.cs
- DisplayNameAttribute.cs
- DbProviderServices.cs
- Opcode.cs
- DataFormats.cs
- MouseButtonEventArgs.cs
- TaskHelper.cs
- DataColumnMappingCollection.cs
- PathSegmentCollection.cs
- XsltSettings.cs
- InputLanguageCollection.cs
- ImageCodecInfoPrivate.cs
- ErrorHandler.cs
- AssociationSetEnd.cs
- DeadCharTextComposition.cs
- SystemNetHelpers.cs
- StringHandle.cs
- RootProfilePropertySettingsCollection.cs
- TextSyndicationContentKindHelper.cs
- ADMembershipProvider.cs
- RemoteX509Token.cs
- Logging.cs
- IDQuery.cs
- ResolveNextArgumentWorkItem.cs
- Visual3D.cs