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
- TraceListeners.cs
- XamlGridLengthSerializer.cs
- RecordConverter.cs
- AnnotationMap.cs
- TextDecorationUnitValidation.cs
- ColorConvertedBitmap.cs
- HealthMonitoringSectionHelper.cs
- Pair.cs
- CultureSpecificCharacterBufferRange.cs
- XsltInput.cs
- DependencyStoreSurrogate.cs
- Baml2006KeyRecord.cs
- DeviceSpecificDesigner.cs
- SmtpClient.cs
- TemplateLookupAction.cs
- DesignerMetadata.cs
- SqlDataSourceFilteringEventArgs.cs
- UncommonField.cs
- IteratorFilter.cs
- SoapEnumAttribute.cs
- TextEditorLists.cs
- ExceptionUtil.cs
- DataStreamFromComStream.cs
- ControlParameter.cs
- BindingMAnagerBase.cs
- AdornerPresentationContext.cs
- MarkupProperty.cs
- MediaPlayerState.cs
- AssertSection.cs
- InstanceContextMode.cs
- WinEventWrap.cs
- SqlBulkCopyColumnMappingCollection.cs
- Script.cs
- ValidatingPropertiesEventArgs.cs
- ToolZone.cs
- GeneralTransformCollection.cs
- Point3DCollection.cs
- ApplicationDirectoryMembershipCondition.cs
- EntityDesignerDataSourceView.cs
- IsolatedStorageSecurityState.cs
- UrlAuthFailedErrorFormatter.cs
- AsyncSerializedWorker.cs
- WsrmTraceRecord.cs
- MethodBody.cs
- PageEventArgs.cs
- ADRole.cs
- Timer.cs
- DashStyles.cs
- SubtreeProcessor.cs
- GridViewColumnHeaderAutomationPeer.cs
- _LocalDataStoreMgr.cs
- TextEditorMouse.cs
- ManagementObjectSearcher.cs
- DataGrid.cs
- InputManager.cs
- NativeMethods.cs
- brushes.cs
- NavigationCommands.cs
- PermissionListSet.cs
- ListItem.cs
- IteratorFilter.cs
- Control.cs
- DataGridItem.cs
- AuthenticateEventArgs.cs
- DelegateTypeInfo.cs
- UserControlCodeDomTreeGenerator.cs
- FlowLayout.cs
- BehaviorService.cs
- PropertyChangingEventArgs.cs
- CreateInstanceBinder.cs
- AstTree.cs
- FlowDocumentScrollViewer.cs
- TypeDescriptor.cs
- ParseElementCollection.cs
- HtmlInputCheckBox.cs
- TextTreeRootNode.cs
- WinEventWrap.cs
- CoordinationService.cs
- _PooledStream.cs
- OutputCacheProfile.cs
- ConfigXmlElement.cs
- xml.cs
- PostBackOptions.cs
- ExpressionValueEditor.cs
- AudioFileOut.cs
- MenuTracker.cs
- OdbcErrorCollection.cs
- RolePrincipal.cs
- StringFreezingAttribute.cs
- RTLAwareMessageBox.cs
- NativeMethods.cs
- OpenTypeLayout.cs
- ProviderConnectionPoint.cs
- DataViewManagerListItemTypeDescriptor.cs
- UrlMappingCollection.cs
- LinqDataSourceView.cs
- InfoCardMasterKey.cs
- SortKey.cs
- FileFormatException.cs
- MaterialCollection.cs