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
- ProcessingInstructionAction.cs
- PersistChildrenAttribute.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- SqlCacheDependencySection.cs
- AppliedDeviceFiltersDialog.cs
- TypedTableGenerator.cs
- EmptyImpersonationContext.cs
- DateTimeFormat.cs
- SelectorItemAutomationPeer.cs
- XmlDataLoader.cs
- Tracking.cs
- ControlUtil.cs
- Base64Decoder.cs
- PermissionSetEnumerator.cs
- HierarchicalDataBoundControlAdapter.cs
- FrameworkElementFactory.cs
- KeyTime.cs
- DependentList.cs
- SlipBehavior.cs
- TextSimpleMarkerProperties.cs
- SuppressMergeCheckAttribute.cs
- PersonalizablePropertyEntry.cs
- ProtocolsConfigurationHandler.cs
- _NegoStream.cs
- TextReader.cs
- TypeTypeConverter.cs
- SecurityTokenTypes.cs
- BezierSegment.cs
- ConnectionsZoneDesigner.cs
- HttpApplication.cs
- ControlCollection.cs
- PasswordRecovery.cs
- PowerModeChangedEventArgs.cs
- WinEventHandler.cs
- SystemDiagnosticsSection.cs
- RawStylusInputCustomDataList.cs
- X509CertificateCollection.cs
- ComponentChangedEvent.cs
- ContextStaticAttribute.cs
- ReadonlyMessageFilter.cs
- HiddenFieldPageStatePersister.cs
- WebPartEditVerb.cs
- WorkflowRuntimeServiceElement.cs
- DrawingAttributes.cs
- PeerApplicationLaunchInfo.cs
- Executor.cs
- Stopwatch.cs
- IODescriptionAttribute.cs
- MDIWindowDialog.cs
- PropertyCondition.cs
- FrugalList.cs
- EntityTransaction.cs
- PopupEventArgs.cs
- ReadOnlyDataSource.cs
- CorrelationValidator.cs
- SurrogateEncoder.cs
- RequiredAttributeAttribute.cs
- SqlRecordBuffer.cs
- JapaneseLunisolarCalendar.cs
- FeatureSupport.cs
- HttpFileCollection.cs
- SectionVisual.cs
- ErrorProvider.cs
- ComplexTypeEmitter.cs
- MemberInitExpression.cs
- ComponentFactoryHelpers.cs
- GraphicsContainer.cs
- BuildProviderAppliesToAttribute.cs
- WindowsAuthenticationModule.cs
- MSHTMLHost.cs
- DefinitionUpdate.cs
- ProtocolsConfigurationEntry.cs
- WindowsGraphics.cs
- XmlNodeList.cs
- GZipStream.cs
- ButtonAutomationPeer.cs
- WmlFormAdapter.cs
- ResourceDisplayNameAttribute.cs
- SqlClientWrapperSmiStream.cs
- ClientTargetSection.cs
- TemplateBaseAction.cs
- GB18030Encoding.cs
- XmlSchemaDatatype.cs
- ProgressChangedEventArgs.cs
- UnSafeCharBuffer.cs
- EnterpriseServicesHelper.cs
- WindowsServiceElement.cs
- TraceSwitch.cs
- IIS7WorkerRequest.cs
- AttachedAnnotation.cs
- ClassicBorderDecorator.cs
- WindowsRegion.cs
- DataBoundControlAdapter.cs
- HybridWebProxyFinder.cs
- SendKeys.cs
- Propagator.Evaluator.cs
- TabletDeviceInfo.cs
- XmlAttributes.cs
- EnumBuilder.cs
- LongTypeConverter.cs