Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / Script / Services / RestClientProxyHandler.cs / 1 / RestClientProxyHandler.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Services { internal class RestClientProxyHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context == null) { throw new ArgumentNullException("context"); } string clientProxyString = WebServiceClientProxyGenerator.GetClientProxyScript(context); if (clientProxyString != null) { context.Response.ContentType = "application/x-javascript"; context.Response.Write(clientProxyString); } } public bool IsReusable { get { return false; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Script.Services { internal class RestClientProxyHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context == null) { throw new ArgumentNullException("context"); } string clientProxyString = WebServiceClientProxyGenerator.GetClientProxyScript(context); if (clientProxyString != null) { context.Response.ContentType = "application/x-javascript"; context.Response.Write(clientProxyString); } } public bool IsReusable { get { return false; } } } } // 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
- WmlLinkAdapter.cs
- PictureBox.cs
- EntityContainerEmitter.cs
- DataSourceControlBuilder.cs
- CqlLexerHelpers.cs
- Rfc2898DeriveBytes.cs
- Utility.cs
- Selector.cs
- IdentityModelDictionary.cs
- Timer.cs
- DescendentsWalkerBase.cs
- XmlIgnoreAttribute.cs
- AndCondition.cs
- NodeInfo.cs
- PropertyInfoSet.cs
- DataControlField.cs
- ZeroOpNode.cs
- PreDigestedSignedInfo.cs
- FilterEventArgs.cs
- DeviceContexts.cs
- TrustSection.cs
- ServerProtocol.cs
- ContextBase.cs
- TemplateApplicationHelper.cs
- Behavior.cs
- DateTime.cs
- DecoderReplacementFallback.cs
- ReflectEventDescriptor.cs
- HostingEnvironmentException.cs
- Win32Exception.cs
- HeaderCollection.cs
- MessageSmuggler.cs
- LoggedException.cs
- ValidationPropertyAttribute.cs
- SqlRowUpdatingEvent.cs
- FillBehavior.cs
- DataGridViewTopLeftHeaderCell.cs
- JulianCalendar.cs
- BindingManagerDataErrorEventArgs.cs
- RequiredAttributeAttribute.cs
- ArcSegment.cs
- ProvidersHelper.cs
- SafeReversePInvokeHandle.cs
- SchemaImporter.cs
- WebBrowserNavigatingEventHandler.cs
- HandledMouseEvent.cs
- PriorityBindingExpression.cs
- ExclusiveNamedPipeTransportManager.cs
- HttpException.cs
- ExpressionQuoter.cs
- FlowDocumentPage.cs
- RelationshipWrapper.cs
- HostingPreferredMapPath.cs
- ToolBarTray.cs
- EmptyCollection.cs
- DefaultHttpHandler.cs
- BuildResultCache.cs
- Int32Collection.cs
- TextDecorationUnitValidation.cs
- ParsedAttributeCollection.cs
- IRCollection.cs
- SynchronizedDispatch.cs
- CLSCompliantAttribute.cs
- BaseDataListActionList.cs
- X509CertificateChain.cs
- TextOnlyOutput.cs
- AutoGeneratedField.cs
- DecoderExceptionFallback.cs
- XmlSerializableReader.cs
- XmlILTrace.cs
- ObjectResult.cs
- BindableTemplateBuilder.cs
- ObservableCollection.cs
- CrossSiteScriptingValidation.cs
- HebrewNumber.cs
- LoginStatusDesigner.cs
- PersonalizationProviderCollection.cs
- uribuilder.cs
- HttpServerVarsCollection.cs
- ImageClickEventArgs.cs
- SortQueryOperator.cs
- CacheRequest.cs
- SystemSounds.cs
- DownloadProgressEventArgs.cs
- ToolZone.cs
- ProfileBuildProvider.cs
- ThemeDirectoryCompiler.cs
- XmlNamespaceMappingCollection.cs
- CompositeDataBoundControl.cs
- ReflectionUtil.cs
- GridViewItemAutomationPeer.cs
- StructuralCache.cs
- OrderedDictionary.cs
- MetadataItem.cs
- WebBaseEventKeyComparer.cs
- HtmlDocument.cs
- DispatcherExceptionFilterEventArgs.cs
- ObjectAssociationEndMapping.cs
- ViewCellSlot.cs
- CodeVariableDeclarationStatement.cs