Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Dispatcher / HelpOperationInvoker.cs / 1305376 / HelpOperationInvoker.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- using System; using System.Globalization; using System.Net; using System.Runtime; using System.Web; using System.ServiceModel.Syndication; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; namespace System.ServiceModel.Web { class HelpOperationInvoker : IOperationInvoker { HelpPage helpPage; IOperationInvoker unhandledDispatchOperation; public const string OperationName = "HelpPageInvoke"; public HelpOperationInvoker(HelpPage helpPage, IOperationInvoker unhandledDispatchOperation) { this.helpPage = helpPage; this.unhandledDispatchOperation = unhandledDispatchOperation; } public object[] AllocateInputs() { return new object[] { null }; } public object Invoke(object instance, object[] inputs, out object[] outputs) { outputs = null; UriTemplateMatch match = (UriTemplateMatch)OperationContext.Current.IncomingMessageProperties[IncomingWebRequestContext.UriTemplateMatchResultsPropertyName]; return this.helpPage.Invoke(match); } public IAsyncResult InvokeBegin(object instance, object[] inputs, AsyncCallback callback, object state) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); } public object InvokeEnd(object instance, out object[] outputs, IAsyncResult result) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException()); } public bool IsSynchronous { get { return true; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MenuAdapter.cs
- ToolStripKeyboardHandlingService.cs
- DllNotFoundException.cs
- NullableIntSumAggregationOperator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- OTFRasterizer.cs
- DataGridRowDetailsEventArgs.cs
- PolyBezierSegment.cs
- CodeMethodInvokeExpression.cs
- GcHandle.cs
- RepeaterCommandEventArgs.cs
- StrokeNodeOperations2.cs
- OdbcInfoMessageEvent.cs
- MailBnfHelper.cs
- PlainXmlSerializer.cs
- ClusterSafeNativeMethods.cs
- CachedPathData.cs
- BufferedGraphicsContext.cs
- SplitContainer.cs
- PenThreadPool.cs
- TransactionScope.cs
- TextBoxDesigner.cs
- FormViewDeletedEventArgs.cs
- MetadataStore.cs
- ClrPerspective.cs
- SecurityContext.cs
- TemplateXamlParser.cs
- MimeMultiPart.cs
- StateElementCollection.cs
- Axis.cs
- SharedPerformanceCounter.cs
- Dump.cs
- MenuBase.cs
- RestClientProxyHandler.cs
- SurrogateSelector.cs
- Pair.cs
- FixedDocumentPaginator.cs
- Timer.cs
- SignatureHelper.cs
- DataSourceControl.cs
- ContentType.cs
- IdentityReference.cs
- DataService.cs
- HtmlTableRowCollection.cs
- UnmanagedHandle.cs
- ServerValidateEventArgs.cs
- WeakHashtable.cs
- JoinTreeNode.cs
- SqlFlattener.cs
- ParseHttpDate.cs
- WindowsMenu.cs
- MouseGestureConverter.cs
- DetailsViewInsertedEventArgs.cs
- Sequence.cs
- Header.cs
- UInt16Converter.cs
- DataView.cs
- FullTextState.cs
- FormsIdentity.cs
- ValidationResult.cs
- PageCatalogPartDesigner.cs
- TypeTypeConverter.cs
- HttpRequestWrapper.cs
- ScriptManager.cs
- EncoderReplacementFallback.cs
- ImageSource.cs
- CatalogZoneBase.cs
- TemplateColumn.cs
- GridViewColumnHeaderAutomationPeer.cs
- SubpageParagraph.cs
- WebPartsPersonalizationAuthorization.cs
- DataFormats.cs
- UserControl.cs
- CatalogPartCollection.cs
- WebEventCodes.cs
- AutomationPeer.cs
- DataGridHelper.cs
- CommandDesigner.cs
- DiscoveryReferences.cs
- RandomNumberGenerator.cs
- XPathScanner.cs
- StateMachineDesignerPaint.cs
- XamlSerializationHelper.cs
- IWorkflowDebuggerService.cs
- FontWeightConverter.cs
- LinearGradientBrush.cs
- WebResourceUtil.cs
- DynamicValidator.cs
- EdmSchemaError.cs
- HttpCookieCollection.cs
- BackgroundWorker.cs
- ParameterCollection.cs
- GenericTextProperties.cs
- StreamGeometry.cs
- indexingfiltermarshaler.cs
- WebPartDisplayMode.cs
- CodeSnippetTypeMember.cs
- LoadWorkflowAsyncResult.cs
- StaticTextPointer.cs
- CaseInsensitiveComparer.cs