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
- CommandPlan.cs
- HtmlMeta.cs
- CqlParser.cs
- TextPattern.cs
- EncodingNLS.cs
- MonthCalendarDesigner.cs
- AppDomainAttributes.cs
- SchemaNamespaceManager.cs
- FrameworkElementAutomationPeer.cs
- ResourceReader.cs
- DecimalAverageAggregationOperator.cs
- BinaryObjectReader.cs
- TiffBitmapDecoder.cs
- DigestTraceRecordHelper.cs
- LockCookie.cs
- WebPartManagerInternals.cs
- InvalidCommandTreeException.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ReflectionPermission.cs
- SafeSecurityHelper.cs
- MessagingActivityHelper.cs
- CharacterString.cs
- VariableElement.cs
- ProbeMatchesApril2005.cs
- CompositeScriptReference.cs
- InkPresenter.cs
- JsonQueryStringConverter.cs
- RadioButton.cs
- DbConnectionHelper.cs
- StructuredProperty.cs
- UseLicense.cs
- ActionFrame.cs
- ValidationEventArgs.cs
- BinaryWriter.cs
- TextContainerHelper.cs
- EncoderParameter.cs
- PlainXmlDeserializer.cs
- Label.cs
- XmlSecureResolver.cs
- ThumbAutomationPeer.cs
- TrustManagerPromptUI.cs
- CustomBindingCollectionElement.cs
- RelationshipFixer.cs
- EntityViewGenerator.cs
- IncrementalCompileAnalyzer.cs
- WebPartManagerDesigner.cs
- SafeArrayRankMismatchException.cs
- PreloadedPackages.cs
- Process.cs
- XmlSchemaValidationException.cs
- StorageMappingFragment.cs
- MemoryMappedViewStream.cs
- DocumentPageTextView.cs
- WorkflowPageSetupDialog.cs
- EventProviderWriter.cs
- DataGridCellInfo.cs
- ExpressionContext.cs
- NativeMethods.cs
- HttpDebugHandler.cs
- CurrencyWrapper.cs
- XamlUtilities.cs
- WrapperSecurityCommunicationObject.cs
- Utilities.cs
- CompiledScopeCriteria.cs
- FieldNameLookup.cs
- StringBuilder.cs
- MethodBody.cs
- ProcessHostConfigUtils.cs
- ExpressionVisitor.cs
- CollectionAdapters.cs
- ListView.cs
- NullableConverter.cs
- StylusSystemGestureEventArgs.cs
- wpf-etw.cs
- CustomWebEventKey.cs
- TextEditorLists.cs
- BasicKeyConstraint.cs
- _DisconnectOverlappedAsyncResult.cs
- Unit.cs
- followingsibling.cs
- DesignerValidationSummaryAdapter.cs
- TextTreeNode.cs
- RemoteCryptoSignHashRequest.cs
- WeakEventTable.cs
- EntityDataSourceColumn.cs
- Stylus.cs
- RecordManager.cs
- IndexOutOfRangeException.cs
- ValueTable.cs
- BitmapMetadataEnumerator.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- InputReportEventArgs.cs
- Contracts.cs
- WebPartVerb.cs
- DataGridViewControlCollection.cs
- PageSettings.cs
- UriSection.cs
- DefaultProxySection.cs
- WebResourceUtil.cs
- EncryptedPackage.cs