Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / HttpGetServerProtocol.cs / 1305376 / HttpGetServerProtocol.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpGetServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "GET") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpGetServerProtocol(); } } internal class HttpGetServerProtocol : HttpServerProtocol { internal HttpGetServerProtocol() : base(false) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpGetServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "GET") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpGetServerProtocol(); } } internal class HttpGetServerProtocol : HttpServerProtocol { internal HttpGetServerProtocol() : base(false) { } } } // 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
- OciHandle.cs
- PocoEntityKeyStrategy.cs
- HighlightVisual.cs
- TextElementCollection.cs
- OdbcErrorCollection.cs
- MILUtilities.cs
- _NetworkingPerfCounters.cs
- AxisAngleRotation3D.cs
- AsyncCompletedEventArgs.cs
- XmlAnyElementAttribute.cs
- XmlSerializerFormatAttribute.cs
- WebReferencesBuildProvider.cs
- MouseGestureConverter.cs
- RenderData.cs
- SettingsPropertyNotFoundException.cs
- TransactionException.cs
- ErrorFormatterPage.cs
- OdbcException.cs
- ImplicitInputBrush.cs
- CodeNamespace.cs
- QilGeneratorEnv.cs
- Bits.cs
- NodeLabelEditEvent.cs
- ProtocolsConfigurationEntry.cs
- _DisconnectOverlappedAsyncResult.cs
- PropertyNames.cs
- XamlStyleSerializer.cs
- MultipartIdentifier.cs
- SqlConnectionString.cs
- ValueQuery.cs
- SafeRsaProviderHandle.cs
- Int16Animation.cs
- URLAttribute.cs
- Popup.cs
- PolicyUnit.cs
- Config.cs
- WorkflowCreationContext.cs
- EventSchemaTraceListener.cs
- ScriptServiceAttribute.cs
- TypeNameParser.cs
- WebScriptEnablingBehavior.cs
- WebPartTransformerAttribute.cs
- EntityClassGenerator.cs
- TranslateTransform.cs
- RegexWriter.cs
- CacheVirtualItemsEvent.cs
- FlowNode.cs
- SectionRecord.cs
- Grid.cs
- SafeUserTokenHandle.cs
- XmlObjectSerializerContext.cs
- RuleSettings.cs
- RegexNode.cs
- FormViewModeEventArgs.cs
- MultiBinding.cs
- CodeTryCatchFinallyStatement.cs
- TemplateBamlRecordReader.cs
- EventWaitHandleSecurity.cs
- MediaContextNotificationWindow.cs
- SelectionItemProviderWrapper.cs
- WebPartCloseVerb.cs
- TabletDeviceInfo.cs
- EmptyImpersonationContext.cs
- EdmProperty.cs
- LinkLabelLinkClickedEvent.cs
- WindowsTab.cs
- BufferedStream2.cs
- BaseCAMarshaler.cs
- DtdParser.cs
- MediaPlayer.cs
- BoolExpr.cs
- ParseElementCollection.cs
- FunctionNode.cs
- FontInfo.cs
- SafeProcessHandle.cs
- TextOutput.cs
- UdpSocketReceiveManager.cs
- BorderGapMaskConverter.cs
- IChannel.cs
- RequiredFieldValidator.cs
- DefaultBindingPropertyAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- SqlTriggerAttribute.cs
- DataSourceCacheDurationConverter.cs
- CustomAttributeFormatException.cs
- oledbmetadatacolumnnames.cs
- StoragePropertyMapping.cs
- TraceContextRecord.cs
- IDReferencePropertyAttribute.cs
- SelectedDatesCollection.cs
- Receive.cs
- BoundPropertyEntry.cs
- DocumentSchemaValidator.cs
- GridViewRowPresenter.cs
- HotCommands.cs
- ClockController.cs
- ParallelDesigner.cs
- AccessibilityHelperForVista.cs
- NullRuntimeConfig.cs
- BuildManagerHost.cs