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
- AssemblyHash.cs
- XMLSyntaxException.cs
- BufferedGraphics.cs
- DESCryptoServiceProvider.cs
- XPathQilFactory.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ListenerConstants.cs
- AttachedPropertyBrowsableAttribute.cs
- EarlyBoundInfo.cs
- RayHitTestParameters.cs
- ObjectPropertyMapping.cs
- TextSelectionProcessor.cs
- VisualProxy.cs
- MemberMemberBinding.cs
- ProtocolsConfiguration.cs
- ToolStripContentPanelRenderEventArgs.cs
- StringFormat.cs
- TemplatedControlDesigner.cs
- Misc.cs
- EdmProperty.cs
- DataContract.cs
- CodeAttachEventStatement.cs
- CrossSiteScriptingValidation.cs
- AudioFileOut.cs
- BaseServiceProvider.cs
- OrthographicCamera.cs
- OleDbCommandBuilder.cs
- StorageFunctionMapping.cs
- ToggleButton.cs
- TrustDriver.cs
- SByte.cs
- ByteFacetDescriptionElement.cs
- OperatingSystem.cs
- HasCopySemanticsAttribute.cs
- DataControlPagerLinkButton.cs
- NullableFloatAverageAggregationOperator.cs
- DataGridViewImageCell.cs
- precedingsibling.cs
- EncodingNLS.cs
- PropertyInfoSet.cs
- Divide.cs
- KnownBoxes.cs
- DiscreteKeyFrames.cs
- StylusLogic.cs
- ProjectionCamera.cs
- ParallelActivityDesigner.cs
- ArgumentFixer.cs
- ConstructorBuilder.cs
- ActiveXHost.cs
- TdsValueSetter.cs
- DisableDpiAwarenessAttribute.cs
- FixedSOMImage.cs
- DiagnosticsConfiguration.cs
- messageonlyhwndwrapper.cs
- WhitespaceSignificantCollectionAttribute.cs
- ConsoleTraceListener.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XPathArrayIterator.cs
- XmlSchemaComplexContentExtension.cs
- SignedPkcs7.cs
- DesigntimeLicenseContextSerializer.cs
- Compiler.cs
- MimeWriter.cs
- InternalConfigHost.cs
- DnsPermission.cs
- LinqDataSourceHelper.cs
- ConfigurationException.cs
- GenericIdentity.cs
- StaticFileHandler.cs
- ManipulationVelocities.cs
- MbpInfo.cs
- DNS.cs
- SqlNotificationRequest.cs
- documentsequencetextcontainer.cs
- Pen.cs
- SessionEndedEventArgs.cs
- GPPOINTF.cs
- EdmType.cs
- smtpconnection.cs
- FocusChangedEventArgs.cs
- UTF8Encoding.cs
- OpenTypeLayout.cs
- DrawListViewColumnHeaderEventArgs.cs
- HandleExceptionArgs.cs
- ChangeNode.cs
- AsymmetricAlgorithm.cs
- ThicknessAnimation.cs
- TracePayload.cs
- SwitchElementsCollection.cs
- ComponentResourceKey.cs
- SoapElementAttribute.cs
- HttpResponseHeader.cs
- Pool.cs
- WebPartPersonalization.cs
- SessionStateContainer.cs
- ColorAnimationBase.cs
- TextStore.cs
- ListItem.cs
- PriorityQueue.cs
- ServiceModelEnumValidator.cs