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
- Application.cs
- TheQuery.cs
- Monitor.cs
- TreeView.cs
- LightweightCodeGenerator.cs
- ZipIOExtraFieldPaddingElement.cs
- ListBoxItemWrapperAutomationPeer.cs
- DataChangedEventManager.cs
- InputManager.cs
- AssertHelper.cs
- ProtocolElementCollection.cs
- SoapProtocolReflector.cs
- SocketElement.cs
- BulletDecorator.cs
- TdsParserHelperClasses.cs
- DataGridViewAccessibleObject.cs
- _AutoWebProxyScriptWrapper.cs
- CacheHelper.cs
- ViewService.cs
- ColorAnimationBase.cs
- RangeContentEnumerator.cs
- HandlerBase.cs
- ClipboardData.cs
- SamlAudienceRestrictionCondition.cs
- QueuePathDialog.cs
- MetadataArtifactLoaderResource.cs
- SoundPlayerAction.cs
- ACL.cs
- NamespaceEmitter.cs
- GenericRootAutomationPeer.cs
- StringBuilder.cs
- ImpersonateTokenRef.cs
- MutexSecurity.cs
- OdbcStatementHandle.cs
- ApplicationManager.cs
- WorkBatch.cs
- SqlConnectionHelper.cs
- DNS.cs
- UntrustedRecipientException.cs
- StaticExtensionConverter.cs
- SessionMode.cs
- WebColorConverter.cs
- SpeakProgressEventArgs.cs
- ActionNotSupportedException.cs
- PropertyNames.cs
- SecurityPolicySection.cs
- SqlBulkCopyColumnMapping.cs
- HighlightComponent.cs
- KeyInfo.cs
- MatrixTransform3D.cs
- WmlImageAdapter.cs
- ItemsControl.cs
- ComponentDispatcher.cs
- EventlogProvider.cs
- PictureBox.cs
- PackageRelationship.cs
- HtmlElementCollection.cs
- NativeObjectSecurity.cs
- LogLogRecordHeader.cs
- LOSFormatter.cs
- TextBoxRenderer.cs
- ThreadInterruptedException.cs
- OleDbException.cs
- EncoderParameter.cs
- PropertyMetadata.cs
- InputLanguageEventArgs.cs
- AbsoluteQuery.cs
- DesignerCategoryAttribute.cs
- FastPropertyAccessor.cs
- XmlValidatingReader.cs
- ValueSerializerAttribute.cs
- StringUtil.cs
- WebPartAddingEventArgs.cs
- ValidationRuleCollection.cs
- AppDomainGrammarProxy.cs
- DynamicDocumentPaginator.cs
- _UncName.cs
- brushes.cs
- UnhandledExceptionEventArgs.cs
- BooleanConverter.cs
- LeaseManager.cs
- PropertyTabAttribute.cs
- ToolStripDropDownClosingEventArgs.cs
- Page.cs
- LassoHelper.cs
- SafeSystemMetrics.cs
- KeyNotFoundException.cs
- RegexWorker.cs
- TableLayoutRowStyleCollection.cs
- ConfigXmlAttribute.cs
- NumericUpDown.cs
- Scheduler.cs
- Page.cs
- ReservationCollection.cs
- StringValueSerializer.cs
- NonVisualControlAttribute.cs
- Helpers.cs
- NotSupportedException.cs
- RotateTransform3D.cs
- ProtocolViolationException.cs