Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Description / HttpPostProtocolImporter.cs / 1305376 / HttpPostProtocolImporter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Description { using System.Web.Services.Protocols; internal class HttpPostProtocolImporter : HttpProtocolImporter { public HttpPostProtocolImporter() : base(true) { } public override string ProtocolName { get { return "HttpPost"; } } internal override Type BaseClass { get { if (Style == ServiceDescriptionImportStyle.Client) { return typeof(HttpPostClientProtocol); } else { return typeof(WebService); } } } protected override bool IsBindingSupported() { HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding)); if (httpBinding == null) return false; if (httpBinding.Verb != "POST") 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 HttpPostProtocolImporter : HttpProtocolImporter { public HttpPostProtocolImporter() : base(true) { } public override string ProtocolName { get { return "HttpPost"; } } internal override Type BaseClass { get { if (Style == ServiceDescriptionImportStyle.Client) { return typeof(HttpPostClientProtocol); } else { return typeof(WebService); } } } protected override bool IsBindingSupported() { HttpBinding httpBinding = (HttpBinding)Binding.Extensions.Find(typeof(HttpBinding)); if (httpBinding == null) return false; if (httpBinding.Verb != "POST") 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
- PeerToPeerException.cs
- SqlClientWrapperSmiStream.cs
- SimpleTypeResolver.cs
- BrowserCapabilitiesCompiler.cs
- X509Chain.cs
- KeySplineConverter.cs
- DataGridViewTopRowAccessibleObject.cs
- TableSectionStyle.cs
- OracleParameterCollection.cs
- ObjectQuery.cs
- SafeLocalMemHandle.cs
- NamespaceCollection.cs
- PasswordDeriveBytes.cs
- ObjectDisposedException.cs
- InvalidCommandTreeException.cs
- WorkflowViewElement.cs
- ItemsChangedEventArgs.cs
- Globals.cs
- TrimSurroundingWhitespaceAttribute.cs
- DesignerCategoryAttribute.cs
- DeferredSelectedIndexReference.cs
- VirtualizingStackPanel.cs
- NetNamedPipeBindingCollectionElement.cs
- TextCharacters.cs
- WithParamAction.cs
- TextBreakpoint.cs
- XmlILTrace.cs
- RepeatBehavior.cs
- RenderDataDrawingContext.cs
- DiffuseMaterial.cs
- ExceptionUtil.cs
- IndexedEnumerable.cs
- PersonalizableTypeEntry.cs
- ScriptReference.cs
- IImplicitResourceProvider.cs
- Hyperlink.cs
- InvokeAction.cs
- SubclassTypeValidatorAttribute.cs
- CFStream.cs
- Convert.cs
- ChineseLunisolarCalendar.cs
- CapabilitiesRule.cs
- _NativeSSPI.cs
- DbConnectionHelper.cs
- TextRange.cs
- SelectedPathEditor.cs
- HtmlDocument.cs
- PerformanceCounterManager.cs
- WaitHandleCannotBeOpenedException.cs
- WebPartsPersonalizationAuthorization.cs
- ProviderManager.cs
- BrowserCapabilitiesCodeGenerator.cs
- CodeNamespaceImport.cs
- SQLRoleProvider.cs
- DynamicDataExtensions.cs
- ColumnHeader.cs
- Metafile.cs
- LoadedEvent.cs
- StateWorkerRequest.cs
- ButtonChrome.cs
- PageContent.cs
- WindowAutomationPeer.cs
- SecurityPolicySection.cs
- OdbcUtils.cs
- ServicePoint.cs
- MenuItemBinding.cs
- DocumentPageViewAutomationPeer.cs
- XamlSerializerUtil.cs
- IIS7UserPrincipal.cs
- ConstraintEnumerator.cs
- PrefixHandle.cs
- FormatConvertedBitmap.cs
- ViewBase.cs
- RequestSecurityTokenResponse.cs
- AlgoModule.cs
- QilSortKey.cs
- OdbcParameterCollection.cs
- RTLAwareMessageBox.cs
- SelectionChangedEventArgs.cs
- Label.cs
- VisualBrush.cs
- MultiView.cs
- DataGridComponentEditor.cs
- BitmapPalettes.cs
- ColorBlend.cs
- FontDialog.cs
- ConditionalAttribute.cs
- DataFieldCollectionEditor.cs
- _LocalDataStoreMgr.cs
- DrawingContextDrawingContextWalker.cs
- AppSecurityManager.cs
- SoundPlayer.cs
- RegexInterpreter.cs
- webproxy.cs
- DataControlField.cs
- Content.cs
- Geometry3D.cs
- TextBoxAutoCompleteSourceConverter.cs
- Misc.cs
- CanonicalizationDriver.cs