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
- PrimaryKeyTypeConverter.cs
- ICollection.cs
- FormViewInsertEventArgs.cs
- WindowsToolbarItemAsMenuItem.cs
- TileBrush.cs
- DesignerForm.cs
- XPathItem.cs
- ImageSource.cs
- XPathSelfQuery.cs
- NodeFunctions.cs
- DataGridViewColumnCollectionEditor.cs
- HandlerMappingMemo.cs
- Preprocessor.cs
- RegisteredScript.cs
- BrushConverter.cs
- EdmToObjectNamespaceMap.cs
- SymmetricAlgorithm.cs
- StyleCollectionEditor.cs
- SoapCodeExporter.cs
- Int16Storage.cs
- UnsafeNativeMethods.cs
- ClonableStack.cs
- WindowClosedEventArgs.cs
- ListenerElementsCollection.cs
- DefaultBinder.cs
- AsynchronousChannelMergeEnumerator.cs
- LinearKeyFrames.cs
- CircleHotSpot.cs
- HttpValueCollection.cs
- __TransparentProxy.cs
- SettingsAttributes.cs
- GregorianCalendarHelper.cs
- QuaternionKeyFrameCollection.cs
- XsdValidatingReader.cs
- DataServiceQueryException.cs
- Camera.cs
- ValueTypeFixupInfo.cs
- ITextView.cs
- TrackingExtract.cs
- MetadataItem_Static.cs
- GuidelineCollection.cs
- ItemContainerGenerator.cs
- SqlBuffer.cs
- RemotingServices.cs
- UseManagedPresentationElement.cs
- RouteParser.cs
- BitmapEffectrendercontext.cs
- File.cs
- DesignObjectWrapper.cs
- GreenMethods.cs
- ChannelServices.cs
- ReadOnlyTernaryTree.cs
- CustomErrorsSectionWrapper.cs
- PrivacyNoticeBindingElement.cs
- StructuredTypeInfo.cs
- UpdateTranslator.cs
- ColumnBinding.cs
- AuthenticateEventArgs.cs
- SqlCrossApplyToCrossJoin.cs
- ValueChangedEventManager.cs
- FixedTextSelectionProcessor.cs
- ContextDataSourceContextData.cs
- HyperlinkAutomationPeer.cs
- EventBuilder.cs
- SimpleTableProvider.cs
- SoapReflectionImporter.cs
- SpecialFolderEnumConverter.cs
- DemultiplexingDispatchMessageFormatter.cs
- SafeTokenHandle.cs
- ToolStripScrollButton.cs
- NetworkInterface.cs
- TextRangeBase.cs
- TemplateBaseAction.cs
- MdiWindowListStrip.cs
- SiteMapPathDesigner.cs
- MD5CryptoServiceProvider.cs
- XmlSchemaType.cs
- AutoScrollHelper.cs
- WindowPatternIdentifiers.cs
- ActivityExecutorDelegateInfo.cs
- FontFamilyValueSerializer.cs
- XmlNodeComparer.cs
- SqlClientWrapperSmiStream.cs
- AtomParser.cs
- UnauthorizedWebPart.cs
- ImageListImageEditor.cs
- XmlObjectSerializerReadContext.cs
- ConnectionPoint.cs
- SoapObjectWriter.cs
- ListView.cs
- ParenthesizePropertyNameAttribute.cs
- ObjRef.cs
- TextTreeRootNode.cs
- NavigatorOutput.cs
- PrintController.cs
- LogEntryHeaderDeserializer.cs
- LicenseProviderAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- MimeTypeAttribute.cs
- DataSourceHelper.cs