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
- BindingElementCollection.cs
- NativeMethods.cs
- TransformGroup.cs
- BaseParagraph.cs
- AdRotatorDesigner.cs
- MDIWindowDialog.cs
- safesecurityhelperavalon.cs
- ConfigurationValue.cs
- WebPageTraceListener.cs
- httpserverutility.cs
- ColumnHeader.cs
- KeySplineConverter.cs
- LateBoundBitmapDecoder.cs
- Fx.cs
- DbConnectionPoolGroup.cs
- CroppedBitmap.cs
- PathFigureCollectionConverter.cs
- HealthMonitoringSection.cs
- ScrollProviderWrapper.cs
- DerivedKeySecurityTokenStub.cs
- List.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataGridViewRow.cs
- CapabilitiesAssignment.cs
- TextAction.cs
- Propagator.cs
- AttributeCollection.cs
- DataObjectFieldAttribute.cs
- UnknownBitmapDecoder.cs
- DataGridViewMethods.cs
- ResXResourceSet.cs
- BitmapEffectOutputConnector.cs
- UpdateRecord.cs
- XmlValidatingReader.cs
- IgnoreSection.cs
- ObjectDataSource.cs
- RectangleConverter.cs
- PropertyGeneratedEventArgs.cs
- DataGridHeaderBorder.cs
- KnownTypesHelper.cs
- Int32CollectionConverter.cs
- WaitHandleCannotBeOpenedException.cs
- MessageHeaders.cs
- TemplatePagerField.cs
- SQLBinary.cs
- ScrollBarRenderer.cs
- HandleCollector.cs
- ObjectViewEntityCollectionData.cs
- SemanticAnalyzer.cs
- CellCreator.cs
- IndentedWriter.cs
- CatalogPartChrome.cs
- BCLDebug.cs
- TextRunTypographyProperties.cs
- ChannelReliableSession.cs
- CodeSnippetCompileUnit.cs
- StateWorkerRequest.cs
- Expressions.cs
- WindowsNonControl.cs
- WebBrowserHelper.cs
- SubpageParagraph.cs
- CaretElement.cs
- Control.cs
- ControlSerializer.cs
- InvokeProviderWrapper.cs
- MergeLocalizationDirectives.cs
- TagMapInfo.cs
- AppDomain.cs
- HttpSessionStateWrapper.cs
- Semaphore.cs
- AnimationClockResource.cs
- OledbConnectionStringbuilder.cs
- BehaviorDragDropEventArgs.cs
- HtmlElementErrorEventArgs.cs
- AccessText.cs
- XmlIgnoreAttribute.cs
- StaticResourceExtension.cs
- ExeContext.cs
- Assembly.cs
- SoapReflectionImporter.cs
- LoggedException.cs
- SiteMapDataSourceView.cs
- PersonalizationProvider.cs
- MenuItemBinding.cs
- AnimationTimeline.cs
- PropertyDescriptorGridEntry.cs
- FullTrustAssembliesSection.cs
- DataGridCellClipboardEventArgs.cs
- _ConnectionGroup.cs
- DecryptRequest.cs
- NotifyIcon.cs
- DataGridViewRowCollection.cs
- ConfigurationSectionCollection.cs
- LinkUtilities.cs
- VirtualDirectoryMappingCollection.cs
- SizeLimitedCache.cs
- FixUp.cs
- ConnectionPointGlyph.cs
- BamlRecordHelper.cs
- SemanticBasicElement.cs