Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpGetProtocolImporter.cs / 1305376 / HttpGetProtocolImporter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Description { using System.Web.Services.Protocols; internal class HttpGetProtocolImporter : HttpProtocolImporter { public HttpGetProtocolImporter() : base(false) { } public override string ProtocolName { get { return "HttpGet"; } } internal override Type BaseClass { get { if (Style == ServiceDescriptionImportStyle.Client) { return typeof(HttpGetClientProtocol); } else { return typeof(WebService); } } } protected override bool IsBindingSupported() { HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding)); if (httpBinding == null) return false; if (httpBinding.Verb != "GET") 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 HttpGetProtocolImporter : HttpProtocolImporter { public HttpGetProtocolImporter() : base(false) { } public override string ProtocolName { get { return "HttpGet"; } } internal override Type BaseClass { get { if (Style == ServiceDescriptionImportStyle.Client) { return typeof(HttpGetClientProtocol); } else { return typeof(WebService); } } } protected override bool IsBindingSupported() { HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding)); if (httpBinding == null) return false; if (httpBinding.Verb != "GET") 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
- FloaterParagraph.cs
- MonthChangedEventArgs.cs
- HttpPostedFile.cs
- CatalogPart.cs
- SettingsBindableAttribute.cs
- VisualTreeUtils.cs
- EditBehavior.cs
- CodeIndexerExpression.cs
- ListItem.cs
- SoapTypeAttribute.cs
- ConversionHelper.cs
- ReadOnlyCollectionBase.cs
- SectionVisual.cs
- HtmlString.cs
- TextTrailingWordEllipsis.cs
- ByteKeyFrameCollection.cs
- LineMetrics.cs
- NamespaceCollection.cs
- CompareInfo.cs
- TransactionScope.cs
- ScrollEvent.cs
- CreateDataSourceDialog.cs
- SiteMap.cs
- ArrayExtension.cs
- DataTrigger.cs
- SchemaNamespaceManager.cs
- NonValidatingSecurityTokenAuthenticator.cs
- ToolStripArrowRenderEventArgs.cs
- UIAgentInitializationException.cs
- Base64Stream.cs
- SectionXmlInfo.cs
- ImportCatalogPart.cs
- RequestQueue.cs
- StylusSystemGestureEventArgs.cs
- HandlerWithFactory.cs
- AppDomainUnloadedException.cs
- TextEndOfLine.cs
- TemplatePropertyEntry.cs
- LinkTarget.cs
- DoubleCollection.cs
- DetailsViewModeEventArgs.cs
- Soap12ProtocolImporter.cs
- MsmqIntegrationMessageProperty.cs
- CodeNamespaceImportCollection.cs
- BindingUtils.cs
- TypeDescriptor.cs
- BamlBinaryReader.cs
- SystemIPv6InterfaceProperties.cs
- Hash.cs
- LazyLoadBehavior.cs
- XPathAncestorQuery.cs
- TextDocumentView.cs
- DbInsertCommandTree.cs
- TextServicesHost.cs
- CompilerGeneratedAttribute.cs
- CodeSnippetCompileUnit.cs
- StringReader.cs
- GroupStyle.cs
- EventManager.cs
- ExecutedRoutedEventArgs.cs
- CompiledAction.cs
- Odbc32.cs
- ResourceAttributes.cs
- TakeOrSkipWhileQueryOperator.cs
- ConfigurationException.cs
- OleDbConnectionFactory.cs
- RepeatInfo.cs
- PrivacyNoticeBindingElement.cs
- GridViewDeleteEventArgs.cs
- PrimitiveSchema.cs
- ConcurrentBag.cs
- TextTreeFixupNode.cs
- Positioning.cs
- X509Certificate.cs
- StorageRoot.cs
- AdornerDecorator.cs
- CustomAttribute.cs
- QuotedPrintableStream.cs
- DetailsViewRow.cs
- ListBox.cs
- WsatConfiguration.cs
- XmlSchemaFacet.cs
- PixelShader.cs
- HWStack.cs
- MarginCollapsingState.cs
- LogExtent.cs
- WpfKnownMemberInvoker.cs
- UseAttributeSetsAction.cs
- ReadOnlyDataSource.cs
- Misc.cs
- ConstructorExpr.cs
- SimpleTextLine.cs
- ScrollableControl.cs
- StorageAssociationSetMapping.cs
- CodeComment.cs
- HGlobalSafeHandle.cs
- RectangleGeometry.cs
- UnhandledExceptionEventArgs.cs
- GridErrorDlg.cs
- PageEventArgs.cs