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
- ObjectDataSourceEventArgs.cs
- RolePrincipal.cs
- DataGridViewCellEventArgs.cs
- IdentitySection.cs
- FontNamesConverter.cs
- SessionStateUtil.cs
- StyleXamlTreeBuilder.cs
- DependencyPropertyKey.cs
- SchemaMapping.cs
- OneOfElement.cs
- RenderDataDrawingContext.cs
- XmlSubtreeReader.cs
- SchemaImporter.cs
- SchemaComplexType.cs
- ClientRoleProvider.cs
- StreamingContext.cs
- linebase.cs
- SortFieldComparer.cs
- SigningDialog.cs
- ScriptingRoleServiceSection.cs
- CollectionsUtil.cs
- XmlKeywords.cs
- ECDiffieHellman.cs
- WindowShowOrOpenTracker.cs
- Point3DValueSerializer.cs
- Pts.cs
- ParentUndoUnit.cs
- ModelUIElement3D.cs
- VectorConverter.cs
- GPStream.cs
- ProcessInfo.cs
- ReturnType.cs
- DbBuffer.cs
- RectConverter.cs
- BuildProvider.cs
- BevelBitmapEffect.cs
- UrlMappingsModule.cs
- EmissiveMaterial.cs
- EFDataModelProvider.cs
- DetailsViewAutoFormat.cs
- WmpBitmapEncoder.cs
- Exceptions.cs
- HttpPostProtocolImporter.cs
- InstanceKeyView.cs
- RawKeyboardInputReport.cs
- MatrixConverter.cs
- HttpApplication.cs
- CreateParams.cs
- SrgsElementFactoryCompiler.cs
- LocalizabilityAttribute.cs
- CommonServiceBehaviorElement.cs
- CharUnicodeInfo.cs
- SystemIPAddressInformation.cs
- UrlPath.cs
- ToolTipAutomationPeer.cs
- AttachedProperty.cs
- Int32Collection.cs
- Scripts.cs
- OwnerDrawPropertyBag.cs
- PictureBoxDesigner.cs
- DeviceContext.cs
- Win32Native.cs
- PermissionAttributes.cs
- MexHttpsBindingCollectionElement.cs
- XsltSettings.cs
- CopyEncoder.cs
- PointAnimationClockResource.cs
- NotificationContext.cs
- WeakReadOnlyCollection.cs
- LabelDesigner.cs
- CryptoConfig.cs
- Native.cs
- TraceSection.cs
- FileSystemWatcher.cs
- StringUtil.cs
- Collection.cs
- InvalidWMPVersionException.cs
- XmlMtomReader.cs
- unsafenativemethodsother.cs
- ImageClickEventArgs.cs
- ImagingCache.cs
- DetailsViewRow.cs
- ConnectionsZoneAutoFormat.cs
- SystemMulticastIPAddressInformation.cs
- PropertyMetadata.cs
- StructuralObject.cs
- StickyNoteContentControl.cs
- templategroup.cs
- ListSourceHelper.cs
- InheritanceContextHelper.cs
- WebPartMenu.cs
- Event.cs
- PropertyPath.cs
- TimeEnumHelper.cs
- DetailsViewInsertEventArgs.cs
- WebBrowserPermission.cs
- HitTestParameters.cs
- SqlProviderUtilities.cs
- SetStateDesigner.cs
- CorrelationResolver.cs