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
- MultiPropertyDescriptorGridEntry.cs
- ADConnectionHelper.cs
- Rectangle.cs
- PropertyTabChangedEvent.cs
- DynamicDataResources.Designer.cs
- ObjectViewQueryResultData.cs
- UserInitiatedNavigationPermission.cs
- Dump.cs
- TargetConverter.cs
- AppDomainAttributes.cs
- NavigationCommands.cs
- DynamicUpdateCommand.cs
- SettingsAttributes.cs
- DependencyObjectType.cs
- PartManifestEntry.cs
- ButtonFieldBase.cs
- PostBackOptions.cs
- TextContainerChangeEventArgs.cs
- embossbitmapeffect.cs
- BlobPersonalizationState.cs
- DispatcherHookEventArgs.cs
- TableRow.cs
- Module.cs
- VScrollBar.cs
- ValuePatternIdentifiers.cs
- WsdlBuildProvider.cs
- GradientBrush.cs
- ParameterCollection.cs
- StylusEditingBehavior.cs
- CompleteWizardStep.cs
- DataServiceBuildProvider.cs
- SecurityPolicySection.cs
- ValidationRuleCollection.cs
- PartitionResolver.cs
- DataBoundControl.cs
- Wizard.cs
- TdsParserSafeHandles.cs
- AutomationElement.cs
- URLString.cs
- RequestResizeEvent.cs
- UnorderedHashRepartitionStream.cs
- WebServiceClientProxyGenerator.cs
- ConnectionManagementSection.cs
- ReferentialConstraint.cs
- RayHitTestParameters.cs
- AttachmentService.cs
- DataObjectAttribute.cs
- CreateUserErrorEventArgs.cs
- SerTrace.cs
- DiscreteKeyFrames.cs
- SimpleWorkerRequest.cs
- UriPrefixTable.cs
- CultureTableRecord.cs
- SystemPens.cs
- DesignerSerializationOptionsAttribute.cs
- CodeCatchClauseCollection.cs
- OptimizedTemplateContentHelper.cs
- DataGridHelper.cs
- TransformerTypeCollection.cs
- ComplexBindingPropertiesAttribute.cs
- ToolStripMenuItem.cs
- QueryCacheManager.cs
- securitymgrsite.cs
- BinaryKeyIdentifierClause.cs
- DATA_BLOB.cs
- ClientBuildManagerCallback.cs
- ScriptManagerProxy.cs
- HandlerFactoryWrapper.cs
- OAVariantLib.cs
- TimeZoneNotFoundException.cs
- SqlConnection.cs
- DataGridAddNewRow.cs
- BamlWriter.cs
- FeatureSupport.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- GetRecipientRequest.cs
- ToolStripDropDown.cs
- VisualBrush.cs
- ReferenceEqualityComparer.cs
- PointLightBase.cs
- ModelItemKeyValuePair.cs
- CancelRequestedRecord.cs
- ParentQuery.cs
- EntityProviderFactory.cs
- SliderAutomationPeer.cs
- DataRowView.cs
- PropertyValueUIItem.cs
- MdbDataFileEditor.cs
- ToolBarTray.cs
- DBDataPermission.cs
- StylusDownEventArgs.cs
- SamlSubject.cs
- NamespaceList.cs
- DBNull.cs
- ParsedAttributeCollection.cs
- TypedServiceOperationListItem.cs
- diagnosticsswitches.cs
- DataGridTableStyleMappingNameEditor.cs
- LinqDataSourceSelectEventArgs.cs
- PropertyGridEditorPart.cs