Files
data
debian
docs
eglib
external
Lucene.Net
Newtonsoft.Json
aspnetwebstack
binary-reference-assemblies
cecil
debian-snapshot
ikdasm
ikvm
referencesource
SMDiagnostics
System
System.Activities
System.Activities.DurableInstancing
System.Activities.Presentation
System.ComponentModel.DataAnnotations
System.Core
System.Data
System.Data.DataSetExtensions
System.Data.Entity
System.Data.Entity.Design
System.Data.Linq
System.Data.SqlXml
System.IdentityModel
System.IdentityModel.Selectors
System.Net
System.Numerics
System.Runtime.Caching
System.Runtime.DurableInstancing
System.Runtime.Serialization
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Activities
System.ServiceModel.Channels
System.ServiceModel.Discovery
System.ServiceModel.Internals
System.ServiceModel.Routing
System.ServiceModel.WasHosting
System.ServiceModel.Web
System
ServiceModel
Activation
Channels
Configuration
Description
Dispatcher
CompositeClientFormatter.cs
CompositeDispatchFormatter.cs
ContentTypeSettingClientMessageFormatter.cs
ContentTypeSettingDispatchMessageFormatter.cs
DataContractJsonSerializerOperationFormatter.cs
DemultiplexingClientMessageFormatter.cs
DemultiplexingDispatchMessageFormatter.cs
FormatSelectingMessageInspector.cs
HelpExampleGenerator.cs
HelpHtmlBuilder.cs
HelpOperationInvoker.cs
HelpPage.cs
HttpStreamFormatter.cs
HttpUnhandledOperationInvoker.cs
JavascriptCallbackMessageInspector.cs
JsonFormatMapping.cs
JsonQueryStringConverter.cs
MultiplexingDispatchMessageFormatter.cs
MultiplexingFormatMapping.cs
NameValueCache.cs
QueryStringConverter.cs
SingleBodyParameterDataContractMessageFormatter.cs
SingleBodyParameterMessageFormatter.cs
SingleBodyParameterXmlSerializerMessageFormatter.cs
UnwrappedTypesXmlSerializerManager.cs
UriTemplateClientFormatter.cs
UriTemplateDispatchFormatter.cs
WebErrorHandler.cs
WebFaultClientMessageInspector.cs
WebFaultFormatter.cs
WebHttpDispatchOperationSelector.cs
WebHttpDispatchOperationSelectorData.cs
WebScriptMetadataFormatter.cs
XmlFormatMapping.cs
Web
WebHttpBinding.cs
WebHttpSecurity.cs
WebHttpSecurityMode.cs
WebHttpSecurityModeHelper.cs
WebScriptServiceHost.cs
AssemblyInfo.cs
GlobalSuppressions.cs
SR.cs
TD.Designer.cs
system.ServiceModel.Web.txt
System.Web
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Entity
System.Web.Entity.Design
System.Web.Extensions
System.Web.Mobile
System.Web.Routing
System.Web.Services
System.Workflow.Activities
System.Workflow.ComponentModel
System.Workflow.Runtime
System.WorkflowServices
System.Xaml.Hosting
System.Xml
System.Xml.Linq
XamlBuildTask
mscorlib
LICENSE.txt
PATENTS.TXT
README.Mono
README.md
rx
ikvm-native
libgc
m4
man
mcs
mono
msvc
po
runtime
samples
scripts
support
tools
AUTHORS
COPYING.LIB
ChangeLog.REMOVED.git-id
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
build-mingw32.sh
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-core.spec
mono-core.spec.in
mono-uninstalled.pc.in
test-driver
winconfig.h

57 lines
1.9 KiB
C#
Raw Normal View History

//-----------------------------------------------------------------------------
// 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; }
}
}
}