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
- assemblycache.cs
- MultiTrigger.cs
- DeviceFiltersSection.cs
- MsmqException.cs
- NavigationProperty.cs
- TriggerActionCollection.cs
- Compiler.cs
- CompiledRegexRunnerFactory.cs
- ForeignConstraint.cs
- FileSystemWatcher.cs
- GeometryConverter.cs
- FrameDimension.cs
- PlainXmlDeserializer.cs
- ProfileBuildProvider.cs
- QueryCacheManager.cs
- RawStylusInputCustomDataList.cs
- ConstraintStruct.cs
- RadioButtonList.cs
- ShaderEffect.cs
- JournalNavigationScope.cs
- AnimatedTypeHelpers.cs
- oledbconnectionstring.cs
- DataControlField.cs
- BufferedResponseStream.cs
- XpsPartBase.cs
- SqlBulkCopyColumnMappingCollection.cs
- HtmlForm.cs
- ItemMap.cs
- DataSourceXmlSerializer.cs
- DataGridViewColumn.cs
- DBConnectionString.cs
- LinearGradientBrush.cs
- OutOfMemoryException.cs
- WindowCollection.cs
- AsymmetricAlgorithm.cs
- SiteMembershipCondition.cs
- NativeCppClassAttribute.cs
- FormConverter.cs
- InternalRelationshipCollection.cs
- FileVersionInfo.cs
- BezierSegment.cs
- HostedHttpTransportManager.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- XmlSchemaObjectCollection.cs
- OutOfProcStateClientManager.cs
- Compilation.cs
- ConstructorBuilder.cs
- XamlToRtfParser.cs
- coordinatorfactory.cs
- XmlILStorageConverter.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- XmlCharacterData.cs
- TextLineBreak.cs
- StateFinalizationDesigner.cs
- InstalledVoice.cs
- Stack.cs
- TransformerInfoCollection.cs
- DefaultTextStoreTextComposition.cs
- QilChoice.cs
- TextHidden.cs
- DataRecordInternal.cs
- SqlSelectStatement.cs
- SQLStringStorage.cs
- OdbcParameter.cs
- StaticSiteMapProvider.cs
- AppModelKnownContentFactory.cs
- XMLSchema.cs
- DataGridColumn.cs
- NonceCache.cs
- Logging.cs
- ActivityWithResultWrapper.cs
- NamespaceList.cs
- CompensationParticipant.cs
- ImageKeyConverter.cs
- SystemSounds.cs
- DataBinder.cs
- TreeNodeClickEventArgs.cs
- LongSumAggregationOperator.cs
- SiteOfOriginPart.cs
- DataGridViewCellStateChangedEventArgs.cs
- SafePointer.cs
- ViewCellRelation.cs
- WebServiceTypeData.cs
- ISessionStateStore.cs
- QueryResponse.cs
- Solver.cs
- SendReply.cs
- StructuralObject.cs
- MenuStrip.cs
- AssemblyNameUtility.cs
- CodeThrowExceptionStatement.cs
- ConfigXmlSignificantWhitespace.cs
- StringDictionary.cs
- ButtonBase.cs
- ReflectTypeDescriptionProvider.cs
- ZipIOLocalFileDataDescriptor.cs
- LabelDesigner.cs
- SelectionRange.cs
- DefaultClaimSet.cs