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
- NameValuePermission.cs
- EffectiveValueEntry.cs
- TagMapCollection.cs
- DrawListViewItemEventArgs.cs
- ReaderContextStackData.cs
- OleDbCommandBuilder.cs
- NumericExpr.cs
- AspProxy.cs
- PathNode.cs
- ProviderBase.cs
- AppSecurityManager.cs
- MultipartContentParser.cs
- SmtpAuthenticationManager.cs
- Bidi.cs
- Pen.cs
- MailAddressCollection.cs
- CssStyleCollection.cs
- Schema.cs
- TextPatternIdentifiers.cs
- MenuItemCollectionEditorDialog.cs
- LocalBuilder.cs
- WpfPayload.cs
- RequiredArgumentAttribute.cs
- ExtentKey.cs
- RowUpdatedEventArgs.cs
- CanonicalXml.cs
- InstanceLockedException.cs
- PathFigureCollectionConverter.cs
- DatagridviewDisplayedBandsData.cs
- CallbackValidatorAttribute.cs
- Int32.cs
- QueryComponents.cs
- ControlsConfig.cs
- TableDetailsRow.cs
- COM2PictureConverter.cs
- ClipboardData.cs
- XslVisitor.cs
- DbTransaction.cs
- CookielessHelper.cs
- HwndHost.cs
- Decimal.cs
- DataGridCaption.cs
- DbDataReader.cs
- GridViewColumn.cs
- NonSerializedAttribute.cs
- _NestedMultipleAsyncResult.cs
- AutomationTextAttribute.cs
- CheckBoxBaseAdapter.cs
- SessionEndingEventArgs.cs
- EditorAttribute.cs
- HierarchicalDataBoundControl.cs
- Process.cs
- ServiceParser.cs
- DataGridViewSelectedCellCollection.cs
- FunctionImportElement.cs
- CodeNamespaceImportCollection.cs
- XmlILStorageConverter.cs
- UIHelper.cs
- SecurityTokenException.cs
- CodeTypeDeclarationCollection.cs
- Expressions.cs
- EdmValidator.cs
- EmissiveMaterial.cs
- CompensableActivity.cs
- RegionInfo.cs
- PairComparer.cs
- OrderedDictionary.cs
- ProviderSettings.cs
- ObjectDisposedException.cs
- NativeMethods.cs
- XmlArrayAttribute.cs
- UrlMappingsSection.cs
- SqlAliasesReferenced.cs
- PerformanceCounterPermissionAttribute.cs
- DocumentGridContextMenu.cs
- StdValidatorsAndConverters.cs
- RTLAwareMessageBox.cs
- ResXDataNode.cs
- cryptoapiTransform.cs
- MobileControl.cs
- QilLiteral.cs
- QilInvoke.cs
- WinFormsSecurity.cs
- ListenerElementsCollection.cs
- CodeAttachEventStatement.cs
- connectionpool.cs
- DbExpressionVisitor_TResultType.cs
- Soap.cs
- Recipient.cs
- AutomationPatternInfo.cs
- SqlStatistics.cs
- FontWeight.cs
- ParameterCollection.cs
- LogReserveAndAppendState.cs
- StdValidatorsAndConverters.cs
- HttpPostServerProtocol.cs
- WorkflowServiceHost.cs
- IChannel.cs
- DataObject.cs
- OwnerDrawPropertyBag.cs