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
- DescendentsWalkerBase.cs
- CounterSample.cs
- Number.cs
- MulticastNotSupportedException.cs
- CallbackDebugBehavior.cs
- FileReservationCollection.cs
- RadioButtonStandardAdapter.cs
- WebControl.cs
- ADConnectionHelper.cs
- XmlNamespaceMapping.cs
- WebPartEditorApplyVerb.cs
- SafeNativeMethodsMilCoreApi.cs
- DataGrid.cs
- TextTreeExtractElementUndoUnit.cs
- StackOverflowException.cs
- InlineCollection.cs
- SerializationSectionGroup.cs
- ScriptResourceHandler.cs
- ToolboxItemFilterAttribute.cs
- CatalogPart.cs
- FacetChecker.cs
- InputMethodStateChangeEventArgs.cs
- SizeF.cs
- ApplicationServicesHostFactory.cs
- Serializer.cs
- AttributeCollection.cs
- TaskExceptionHolder.cs
- Underline.cs
- FatalException.cs
- ScriptReferenceEventArgs.cs
- SqlCommandAsyncResult.cs
- SqlUDTStorage.cs
- CharKeyFrameCollection.cs
- RIPEMD160.cs
- ContentControl.cs
- BamlLocalizabilityResolver.cs
- DispatcherEventArgs.cs
- FontWeight.cs
- ComPersistableTypeElement.cs
- SafeLocalAllocation.cs
- CaseInsensitiveOrdinalStringComparer.cs
- TrustLevelCollection.cs
- ColorBuilder.cs
- CqlErrorHelper.cs
- NativeWindow.cs
- QueuePropertyVariants.cs
- XmlTextReaderImpl.cs
- WebConfigurationFileMap.cs
- ServiceBehaviorElement.cs
- RelationshipWrapper.cs
- Vector.cs
- SqlParameterCollection.cs
- DataBinder.cs
- SoapTypeAttribute.cs
- ExceptionValidationRule.cs
- ColumnProvider.cs
- PropertyIDSet.cs
- DbDataRecord.cs
- util.cs
- UnknownMessageReceivedEventArgs.cs
- XmlWriter.cs
- KeyEventArgs.cs
- arabicshape.cs
- ListViewGroup.cs
- AggregatePushdown.cs
- MenuBindingsEditor.cs
- ProcessManager.cs
- AssemblyResolver.cs
- SetStoryboardSpeedRatio.cs
- NTAccount.cs
- Graph.cs
- CompilerTypeWithParams.cs
- EventNotify.cs
- CapacityStreamGeometryContext.cs
- AppliedDeviceFiltersEditor.cs
- SystemPens.cs
- ApplicationDirectory.cs
- FrameworkPropertyMetadata.cs
- ListCommandEventArgs.cs
- PaintValueEventArgs.cs
- BamlRecordReader.cs
- UrlPath.cs
- ChannelManager.cs
- oledbconnectionstring.cs
- OptimizedTemplateContent.cs
- ImageList.cs
- _AuthenticationState.cs
- RequestCache.cs
- BitmapImage.cs
- DataRelationPropertyDescriptor.cs
- FloatUtil.cs
- Crypto.cs
- IPHostEntry.cs
- SqlCacheDependencyDatabaseCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- SettingsSection.cs
- UnsafeNativeMethods.cs
- LocalizableResourceBuilder.cs
- JsonFormatReaderGenerator.cs
- AsyncDataRequest.cs