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
- Baml2006KeyRecord.cs
- safex509handles.cs
- IntersectQueryOperator.cs
- OdbcError.cs
- CapabilitiesSection.cs
- MailSettingsSection.cs
- DelegatingHeader.cs
- FilterQuery.cs
- ResponseStream.cs
- ErrorRuntimeConfig.cs
- ApplicationId.cs
- DbProviderConfigurationHandler.cs
- InputGestureCollection.cs
- StateBag.cs
- FixedSOMTextRun.cs
- Camera.cs
- HtmlGenericControl.cs
- LifetimeServices.cs
- Visitor.cs
- FileBasedResourceGroveler.cs
- PopupRoot.cs
- HttpModuleCollection.cs
- InstanceLockLostException.cs
- SingleObjectCollection.cs
- SqlClientPermission.cs
- DetailsViewUpdateEventArgs.cs
- RawStylusSystemGestureInputReport.cs
- StringKeyFrameCollection.cs
- XmlDataSource.cs
- odbcmetadatacolumnnames.cs
- DbParameterCollectionHelper.cs
- DocComment.cs
- Regex.cs
- DirectoryNotFoundException.cs
- UriExt.cs
- XmlILAnnotation.cs
- BuildProviderCollection.cs
- Set.cs
- ObjectListCommand.cs
- StyleXamlParser.cs
- TaiwanCalendar.cs
- XsltQilFactory.cs
- ConfigurationLoader.cs
- DataGridTextBox.cs
- TCPClient.cs
- ellipse.cs
- ReferenceConverter.cs
- IdSpace.cs
- ThreadExceptionEvent.cs
- WriteTimeStream.cs
- ListControlBuilder.cs
- PartialCachingAttribute.cs
- IDispatchConstantAttribute.cs
- AsyncParams.cs
- SiteMapNodeItem.cs
- TypeSystem.cs
- AnimationClock.cs
- LongMinMaxAggregationOperator.cs
- DrawingVisualDrawingContext.cs
- TextTreeExtractElementUndoUnit.cs
- MemoryMappedView.cs
- LogExtent.cs
- AvtEvent.cs
- ApplicationDirectoryMembershipCondition.cs
- TextLineResult.cs
- DataMemberListEditor.cs
- XmlSerializationReader.cs
- BrushConverter.cs
- CompiledXpathExpr.cs
- ContainerControlDesigner.cs
- RadioButtonRenderer.cs
- ReadOnlyDictionary.cs
- TypeDescriptionProviderAttribute.cs
- VisualTarget.cs
- AllMembershipCondition.cs
- MetadataUtilsSmi.cs
- LookupNode.cs
- QilChoice.cs
- XamlUtilities.cs
- DiagnosticTraceSource.cs
- ResourcesChangeInfo.cs
- DynamicValidatorEventArgs.cs
- SizeConverter.cs
- DataException.cs
- ProgressPage.cs
- MatrixValueSerializer.cs
- PropVariant.cs
- ToolStripItemDataObject.cs
- ObjectResult.cs
- Ipv6Element.cs
- SqlWorkflowPersistenceService.cs
- FixedSOMTable.cs
- WebEventTraceProvider.cs
- DrawingAttributesDefaultValueFactory.cs
- SmtpSection.cs
- PropertiesTab.cs
- WebSysDisplayNameAttribute.cs
- Memoizer.cs
- TypeDependencyAttribute.cs
- HitTestFilterBehavior.cs