Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Dispatcher / OperationInvokerBehavior.cs / 1 / OperationInvokerBehavior.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System.Collections.Generic; using System.ServiceModel.Channels; using System.ServiceModel.Description; class OperationInvokerBehavior : IOperationBehavior { public OperationInvokerBehavior() { } void IOperationBehavior.Validate(OperationDescription description) { } void IOperationBehavior.AddBindingParameters(OperationDescription description, BindingParameterCollection parameters) { } void IOperationBehavior.ApplyDispatchBehavior(OperationDescription description, DispatchOperation dispatch) { if (dispatch == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("dispatch"); //Always favor the synchronous implementation if (description.SyncMethod != null) dispatch.Invoker = new SyncMethodInvoker(description.SyncMethod); else if (description.BeginMethod != null) dispatch.Invoker = new AsyncMethodInvoker(description.BeginMethod, description.EndMethod); } void IOperationBehavior.ApplyClientBehavior(OperationDescription description, ClientOperation proxy) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextMarkerSource.cs
- DataSourceControl.cs
- StylusButtonEventArgs.cs
- Exceptions.cs
- XsltCompileContext.cs
- PersonalizationProviderHelper.cs
- Automation.cs
- SecurityResources.cs
- LoginName.cs
- IntranetCredentialPolicy.cs
- SchemaObjectWriter.cs
- SuppressIldasmAttribute.cs
- Types.cs
- ListSourceHelper.cs
- QueryableDataSourceView.cs
- DrawingServices.cs
- RemotingConfiguration.cs
- BackgroundWorker.cs
- DataGridViewCellEventArgs.cs
- InvokeGenerator.cs
- TreeWalker.cs
- HtmlSelect.cs
- CodeTypeDelegate.cs
- HitTestWithPointDrawingContextWalker.cs
- IMembershipProvider.cs
- PrintDocument.cs
- Command.cs
- GeneralTransform3DTo2DTo3D.cs
- WebPartConnectionsCancelEventArgs.cs
- HttpResponseWrapper.cs
- ProxyHelper.cs
- SecurityKeyType.cs
- PerformanceCounterCategory.cs
- ExeContext.cs
- Triangle.cs
- LeaseManager.cs
- Header.cs
- HelpEvent.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlSerializer.cs
- IdentityModelDictionary.cs
- ListViewItemMouseHoverEvent.cs
- OfTypeExpression.cs
- ShaperBuffers.cs
- GPRECT.cs
- Type.cs
- SafeLibraryHandle.cs
- SingleSelectRootGridEntry.cs
- ControlType.cs
- WrapPanel.cs
- RelationshipType.cs
- MonthChangedEventArgs.cs
- SelectionRange.cs
- IDReferencePropertyAttribute.cs
- TaskFormBase.cs
- Soap.cs
- AssemblyInfo.cs
- DataBoundControl.cs
- HttpProfileGroupBase.cs
- ModuleElement.cs
- SyntaxCheck.cs
- XmlSchemaValidationException.cs
- OleDbPropertySetGuid.cs
- TableRow.cs
- PropVariant.cs
- DateTimeConstantAttribute.cs
- OutputCacheSection.cs
- JavaScriptSerializer.cs
- ErrorHandlingAcceptor.cs
- TogglePattern.cs
- HelloMessage11.cs
- PackageRelationship.cs
- ContentFilePart.cs
- GridViewSelectEventArgs.cs
- Filter.cs
- SqlClientPermission.cs
- UserControl.cs
- ExpressionList.cs
- MobileContainerDesigner.cs
- EntitySqlException.cs
- Subtree.cs
- RectangleGeometry.cs
- ApplicationId.cs
- EndPoint.cs
- UrlPropertyAttribute.cs
- DeferredSelectedIndexReference.cs
- PkcsMisc.cs
- SettingsAttributeDictionary.cs
- MediaElement.cs
- AssemblyBuilderData.cs
- ImageAutomationPeer.cs
- GPStream.cs
- TypedTableHandler.cs
- FixedSOMGroup.cs
- BuildProviderAppliesToAttribute.cs
- LowerCaseStringConverter.cs
- ParameterModifier.cs
- CheckoutException.cs
- InternalControlCollection.cs
- compensatingcollection.cs