Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpPostProtocolImporter.cs / 1305376 / HttpPostProtocolImporter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Description { using System.Web.Services.Protocols; internal class HttpPostProtocolImporter : HttpProtocolImporter { public HttpPostProtocolImporter() : base(true) { } public override string ProtocolName { get { return "HttpPost"; } } internal override Type BaseClass { get { if (Style == ServiceDescriptionImportStyle.Client) { return typeof(HttpPostClientProtocol); } else { return typeof(WebService); } } } protected override bool IsBindingSupported() { HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding)); if (httpBinding == null) return false; if (httpBinding.Verb != "POST") return false; return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Description { using System.Web.Services.Protocols; internal class HttpPostProtocolImporter : HttpProtocolImporter { public HttpPostProtocolImporter() : base(true) { } public override string ProtocolName { get { return "HttpPost"; } } internal override Type BaseClass { get { if (Style == ServiceDescriptionImportStyle.Client) { return typeof(HttpPostClientProtocol); } else { return typeof(WebService); } } } protected override bool IsBindingSupported() { HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding)); if (httpBinding == null) return false; if (httpBinding.Verb != "POST") return false; 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
- _UriSyntax.cs
- SubtreeProcessor.cs
- StringCollection.cs
- IssuanceLicense.cs
- ReflectionTypeLoadException.cs
- DesignTable.cs
- SelectionPattern.cs
- TextTreeExtractElementUndoUnit.cs
- HostSecurityManager.cs
- DataControlLinkButton.cs
- TextDecorationCollectionConverter.cs
- HwndMouseInputProvider.cs
- ListViewInsertEventArgs.cs
- CallbackValidator.cs
- DesignerOptions.cs
- WebBrowserNavigatedEventHandler.cs
- WorkflowMessageEventArgs.cs
- DecimalConstantAttribute.cs
- IntegerValidatorAttribute.cs
- DataGridViewCellPaintingEventArgs.cs
- UserControlParser.cs
- ApplicationDirectory.cs
- SR.cs
- WebResourceUtil.cs
- XsltException.cs
- TypeGeneratedEventArgs.cs
- CompilerScopeManager.cs
- ColorConvertedBitmapExtension.cs
- LoginView.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XPathLexer.cs
- MessageRpc.cs
- DialogResultConverter.cs
- WeakReferenceKey.cs
- CodeBinaryOperatorExpression.cs
- DoubleStorage.cs
- TickBar.cs
- GlyphInfoList.cs
- QuaternionIndependentAnimationStorage.cs
- ExpressionBuilderContext.cs
- HashMembershipCondition.cs
- DbConnectionPool.cs
- TextMarkerSource.cs
- AttachmentCollection.cs
- PropertyRecord.cs
- BrowserCapabilitiesCompiler.cs
- PersonalizationAdministration.cs
- DeferredReference.cs
- MD5.cs
- Version.cs
- DataGridItem.cs
- Vector3DCollection.cs
- _HelperAsyncResults.cs
- JoinTreeNode.cs
- Filter.cs
- ToolStripItemRenderEventArgs.cs
- UxThemeWrapper.cs
- securitycriticaldata.cs
- CompareValidator.cs
- StatusCommandUI.cs
- DataGridTable.cs
- PenContexts.cs
- XmlSchemaComplexType.cs
- WmlCommandAdapter.cs
- ThemeDirectoryCompiler.cs
- ConnectionInterfaceCollection.cs
- WebConfigurationHost.cs
- ParameterElement.cs
- FileStream.cs
- AggregationMinMaxHelpers.cs
- MatrixUtil.cs
- ObjectIDGenerator.cs
- SQLConvert.cs
- XXXOnTypeBuilderInstantiation.cs
- StreamResourceInfo.cs
- ContextItem.cs
- EDesignUtil.cs
- CqlWriter.cs
- CultureMapper.cs
- TypeElement.cs
- HostExecutionContextManager.cs
- AvTraceDetails.cs
- EdmScalarPropertyAttribute.cs
- ToolstripProfessionalRenderer.cs
- ListViewHitTestInfo.cs
- LocatorBase.cs
- ListItemConverter.cs
- OutputScopeManager.cs
- ExpressionBuilder.cs
- InstanceOwner.cs
- InfoCardArgumentException.cs
- HtmlInputPassword.cs
- StreamUpgradeAcceptor.cs
- ArgumentNullException.cs
- ComboBox.cs
- HeaderCollection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Size3D.cs
- BatchParser.cs
- HTMLTagNameToTypeMapper.cs