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
- RawKeyboardInputReport.cs
- DoubleAnimation.cs
- XmlSchemaAttribute.cs
- CompositeCollectionView.cs
- Helpers.cs
- Handle.cs
- SQLUtility.cs
- InstallerTypeAttribute.cs
- SQLMoneyStorage.cs
- ILGen.cs
- ScriptMethodAttribute.cs
- DesignerVerb.cs
- WebReferenceOptions.cs
- CurrentChangedEventManager.cs
- NetworkStream.cs
- ModuleConfigurationInfo.cs
- DesignSurfaceEvent.cs
- JapaneseLunisolarCalendar.cs
- AnimationClock.cs
- MethodImplAttribute.cs
- FrameworkContextData.cs
- ActivityFunc.cs
- HelpEvent.cs
- UriParserTemplates.cs
- OleDbConnectionFactory.cs
- ChineseLunisolarCalendar.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- InheritedPropertyChangedEventArgs.cs
- CommandPlan.cs
- UpDownEvent.cs
- CommandValueSerializer.cs
- EntityDataSourceWizardForm.cs
- FragmentQueryKB.cs
- AttributeQuery.cs
- DSASignatureDeformatter.cs
- VerificationAttribute.cs
- WeakEventTable.cs
- FolderBrowserDialogDesigner.cs
- UniqueIdentifierService.cs
- SendMessageChannelCache.cs
- ReferenceEqualityComparer.cs
- InplaceBitmapMetadataWriter.cs
- CodeGroup.cs
- Visual3D.cs
- CompleteWizardStep.cs
- QueryReaderSettings.cs
- ListViewCommandEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- StrokeDescriptor.cs
- ToolStripItemRenderEventArgs.cs
- TemplateControl.cs
- FamilyTypefaceCollection.cs
- AssemblyBuilder.cs
- ProviderMetadata.cs
- GridEntryCollection.cs
- CapabilitiesSection.cs
- ExclusiveCanonicalizationTransform.cs
- cryptoapiTransform.cs
- OleDbFactory.cs
- PasswordBoxAutomationPeer.cs
- EventHandlerList.cs
- DesigntimeLicenseContext.cs
- ElapsedEventArgs.cs
- VectorValueSerializer.cs
- SqlParameter.cs
- TypeUsageBuilder.cs
- ToolStripDropDownMenu.cs
- XPathScanner.cs
- ClientTarget.cs
- MediaTimeline.cs
- Stroke.cs
- PartialCachingAttribute.cs
- __Filters.cs
- CompilerScopeManager.cs
- XmlDocumentFieldSchema.cs
- RegexCompiler.cs
- TimestampInformation.cs
- NativeCompoundFileAPIs.cs
- TextEffect.cs
- InfoCardProofToken.cs
- OverlappedAsyncResult.cs
- ParameterEditorUserControl.cs
- _ProxyChain.cs
- FrameworkContentElement.cs
- HtmlLink.cs
- MsmqIntegrationSecurityElement.cs
- TagPrefixCollection.cs
- LayeredChannelListener.cs
- AppSettingsExpressionBuilder.cs
- WindowsGraphics.cs
- ComponentCache.cs
- InputManager.cs
- StreamInfo.cs
- _NestedMultipleAsyncResult.cs
- OrderPreservingPipeliningMergeHelper.cs
- SerializationFieldInfo.cs
- VisualBrush.cs
- ping.cs
- SmiRecordBuffer.cs
- DetailsViewInsertEventArgs.cs