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
- PeerContact.cs
- IOThreadTimer.cs
- _ConnectOverlappedAsyncResult.cs
- streamingZipPartStream.cs
- SafeFindHandle.cs
- CodeCastExpression.cs
- TraceInternal.cs
- DesignerTransaction.cs
- CmsInterop.cs
- SingleAnimationBase.cs
- Visitor.cs
- DataGridViewColumnEventArgs.cs
- WinCategoryAttribute.cs
- Latin1Encoding.cs
- RegisteredDisposeScript.cs
- TitleStyle.cs
- MultiView.cs
- ImageConverter.cs
- StringValidatorAttribute.cs
- UrlPath.cs
- MenuCommands.cs
- WebPartAddingEventArgs.cs
- ThemeableAttribute.cs
- ChangesetResponse.cs
- ContentElementAutomationPeer.cs
- TextSelectionProcessor.cs
- SQLStringStorage.cs
- Task.cs
- AlgoModule.cs
- UnionQueryOperator.cs
- ValueTypeFixupInfo.cs
- SqlBuffer.cs
- PopupControlService.cs
- ListViewItem.cs
- Converter.cs
- ValueChangedEventManager.cs
- ScrollChrome.cs
- FormViewRow.cs
- LayoutInformation.cs
- PropertyInfo.cs
- _NestedSingleAsyncResult.cs
- StringFreezingAttribute.cs
- QilTernary.cs
- StorageBasedPackageProperties.cs
- _SslState.cs
- XmlSyndicationContent.cs
- HierarchicalDataSourceConverter.cs
- IntegerValidator.cs
- ErrorTableItemStyle.cs
- GiveFeedbackEventArgs.cs
- PingReply.cs
- SecurityState.cs
- DuplicateWaitObjectException.cs
- SettingsSection.cs
- CreateParams.cs
- UInt16.cs
- AuthenticationModulesSection.cs
- MouseOverProperty.cs
- EdmSchemaError.cs
- WebUtil.cs
- UIElementIsland.cs
- InfocardChannelParameter.cs
- SQLString.cs
- Scene3D.cs
- CodeDomSerializer.cs
- ToolStripArrowRenderEventArgs.cs
- XmlDictionaryReaderQuotas.cs
- HashCodeCombiner.cs
- DataGridCellClipboardEventArgs.cs
- MessageHeaderDescriptionCollection.cs
- SizeFConverter.cs
- DataSourceControlBuilder.cs
- SQLResource.cs
- DragEvent.cs
- WebServiceClientProxyGenerator.cs
- WeakRefEnumerator.cs
- TraceHandler.cs
- MobileComponentEditorPage.cs
- NativeMethods.cs
- MultiByteCodec.cs
- FileLoadException.cs
- EntityKeyElement.cs
- CaseInsensitiveHashCodeProvider.cs
- SignedInfo.cs
- BaseCAMarshaler.cs
- TextReturnReader.cs
- FileStream.cs
- SqlGenericUtil.cs
- FreeFormDesigner.cs
- ProfileModule.cs
- OdbcInfoMessageEvent.cs
- TypeLibraryHelper.cs
- HandlerFactoryCache.cs
- DefaultValueTypeConverter.cs
- FileDataSourceCache.cs
- COMException.cs
- XPathEmptyIterator.cs
- CharAnimationUsingKeyFrames.cs
- GenericWebPart.cs
- LinqDataSourceSelectEventArgs.cs