Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / GlobalProxySelection.cs / 1 / GlobalProxySelection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { [Obsolete("This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202")] public class GlobalProxySelection { // This just wraps WebRequest.DefaultWebProxy and modifies it to be compatible with Everett. // It needs to return a WebProxy whenever possible, and an EmptyWebProxy instead of null. public static IWebProxy Select { get { IWebProxy proxy = WebRequest.DefaultWebProxy; if (proxy == null) { return GetEmptyWebProxy(); } WebRequest.WebProxyWrapper wrap = proxy as WebRequest.WebProxyWrapper; if (wrap != null) { return wrap.WebProxy; } return proxy; } set { WebRequest.DefaultWebProxy = value; } } public static IWebProxy GetEmptyWebProxy() { return new EmptyWebProxy(); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UserControlDesigner.cs
- TextBreakpoint.cs
- HtmlInputButton.cs
- NegationPusher.cs
- RawContentTypeMapper.cs
- StreamReader.cs
- ExplicitDiscriminatorMap.cs
- ErrorHandler.cs
- IndexedGlyphRun.cs
- SqlDataSourceCache.cs
- ObjectQuery_EntitySqlExtensions.cs
- DesignBindingConverter.cs
- XsltLoader.cs
- RegexGroupCollection.cs
- ClientBuildManagerCallback.cs
- ResourceType.cs
- XmlSchemaSimpleContentRestriction.cs
- StackBuilderSink.cs
- ExtenderControl.cs
- CatalogZone.cs
- LoggedException.cs
- MarkupWriter.cs
- TabletDeviceInfo.cs
- EmptyCollection.cs
- MethodBuilder.cs
- AppPool.cs
- SecurityTokenAuthenticator.cs
- SkinBuilder.cs
- XPathNodePointer.cs
- CodeTypeParameterCollection.cs
- SqlXmlStorage.cs
- GeometryGroup.cs
- WebPartConnectionCollection.cs
- listitem.cs
- VideoDrawing.cs
- DataGrid.cs
- CurrentChangingEventManager.cs
- WarningException.cs
- CompilerGlobalScopeAttribute.cs
- ClientRoleProvider.cs
- PathGeometry.cs
- UInt16Storage.cs
- ConvertersCollection.cs
- RemoteArgument.cs
- XmlDownloadManager.cs
- ImageListStreamer.cs
- TextMetrics.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XmlNodeReader.cs
- PopupControlService.cs
- ConfigXmlSignificantWhitespace.cs
- DataGridState.cs
- InvokePattern.cs
- COM2IDispatchConverter.cs
- PrincipalPermission.cs
- RTTypeWrapper.cs
- SetUserPreferenceRequest.cs
- PageHandlerFactory.cs
- _NegotiateClient.cs
- DataGridViewCellParsingEventArgs.cs
- ServiceMoniker.cs
- ListItem.cs
- CustomErrorsSectionWrapper.cs
- Substitution.cs
- SetStoryboardSpeedRatio.cs
- XmlNodeReader.cs
- ConnectionStringSettingsCollection.cs
- DataSourceListEditor.cs
- HTTPRemotingHandler.cs
- ControlValuePropertyAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- TextSimpleMarkerProperties.cs
- Triplet.cs
- JournalEntry.cs
- WebPartMenu.cs
- ConnectionProviderAttribute.cs
- TextLineBreak.cs
- X509SecurityTokenAuthenticator.cs
- SecurityElementBase.cs
- ControlCodeDomSerializer.cs
- Ref.cs
- Ray3DHitTestResult.cs
- SqlMethodTransformer.cs
- RequestCache.cs
- StorageConditionPropertyMapping.cs
- WorkflowRuntime.cs
- ISessionStateStore.cs
- XmlDataDocument.cs
- Oid.cs
- WindowsFormsSynchronizationContext.cs
- HostingPreferredMapPath.cs
- StylusButtonCollection.cs
- MobileSysDescriptionAttribute.cs
- EdmFunctions.cs
- DataGridViewCellCancelEventArgs.cs
- ProgramPublisher.cs
- MemberExpression.cs
- WorkflowMarkupSerializationManager.cs
- TemplateField.cs
- BamlRecords.cs