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
- Token.cs
- WindowsTooltip.cs
- TypeConvertions.cs
- TextBoxBase.cs
- DataGridTextBoxColumn.cs
- BindingMAnagerBase.cs
- ItemsControlAutomationPeer.cs
- ContentIterators.cs
- ToolStripContentPanel.cs
- UnsafeNativeMethods.cs
- CacheMode.cs
- Int64KeyFrameCollection.cs
- TemplatedAdorner.cs
- ChooseAction.cs
- StrongNameKeyPair.cs
- XpsImage.cs
- SafeCryptHandles.cs
- EventHandlerList.cs
- Transform.cs
- InstanceDescriptor.cs
- SpeechDetectedEventArgs.cs
- SocketInformation.cs
- WebPartUtil.cs
- ResponseBodyWriter.cs
- CompoundFileIOPermission.cs
- ActivityBuilderHelper.cs
- DPCustomTypeDescriptor.cs
- TdsParserSafeHandles.cs
- Accessible.cs
- CheckedListBox.cs
- ClientRuntimeConfig.cs
- RandomNumberGenerator.cs
- XPathPatternParser.cs
- LinkLabel.cs
- WorkflowOperationInvoker.cs
- CompositeActivityCodeGenerator.cs
- PathSegment.cs
- XmlILTrace.cs
- FrameworkElement.cs
- SmiRequestExecutor.cs
- CompilerGlobalScopeAttribute.cs
- DrawItemEvent.cs
- DrawingContextWalker.cs
- QuadraticBezierSegment.cs
- ObjectRef.cs
- MutexSecurity.cs
- ChannelEndpointElement.cs
- PageTrueTypeFont.cs
- DomainConstraint.cs
- EventProviderTraceListener.cs
- RelationshipDetailsRow.cs
- XmlLoader.cs
- ComboBoxAutomationPeer.cs
- UIServiceHelper.cs
- RemotingAttributes.cs
- EntityKey.cs
- ExpandedProjectionNode.cs
- VScrollProperties.cs
- StoreAnnotationsMap.cs
- WebPartCatalogAddVerb.cs
- HttpResponseInternalBase.cs
- EventLogSession.cs
- MethodToken.cs
- ManageRequest.cs
- AttributeEmitter.cs
- _BaseOverlappedAsyncResult.cs
- Grid.cs
- EntityClassGenerator.cs
- DesignerActionHeaderItem.cs
- SpecialTypeDataContract.cs
- DictionaryCustomTypeDescriptor.cs
- LoaderAllocator.cs
- RangeValuePattern.cs
- SamlSubjectStatement.cs
- FormatVersion.cs
- ThrowHelper.cs
- PreviewPageInfo.cs
- XmlAnyElementAttributes.cs
- DetailsViewRow.cs
- CodeParameterDeclarationExpressionCollection.cs
- Accessible.cs
- HttpCookie.cs
- DesignSurfaceManager.cs
- EnlistmentState.cs
- WebCategoryAttribute.cs
- NativeMsmqMessage.cs
- DataSvcMapFile.cs
- DataGridHeaderBorder.cs
- Part.cs
- UserPreferenceChangingEventArgs.cs
- StatusBarPanelClickEvent.cs
- SessionStateContainer.cs
- XmlIgnoreAttribute.cs
- ExpressionBuilder.cs
- RewritingSimplifier.cs
- Mappings.cs
- HttpResponse.cs
- dataobject.cs
- WebPartConnectionsConnectVerb.cs
- DataGridClipboardCellContent.cs