Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / GlobalProxySelection.cs / 1305376 / 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(); } } } // 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
- BoundPropertyEntry.cs
- ConnectionStringsExpressionBuilder.cs
- ObjectAssociationEndMapping.cs
- ConfigurationSectionGroup.cs
- EntityConnection.cs
- Container.cs
- TextTreeRootNode.cs
- Italic.cs
- DefaultParameterValueAttribute.cs
- CapiNative.cs
- PersistenceContextEnlistment.cs
- Simplifier.cs
- WorkflowDesigner.cs
- QueryInterceptorAttribute.cs
- WaitHandleCannotBeOpenedException.cs
- GenerateScriptTypeAttribute.cs
- UpDownEvent.cs
- Hex.cs
- SqlDependencyListener.cs
- CodeSnippetStatement.cs
- DataGridItem.cs
- GridEntry.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SQLString.cs
- ObfuscateAssemblyAttribute.cs
- AnonymousIdentificationSection.cs
- CacheAxisQuery.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- PeerNearMe.cs
- DummyDataSource.cs
- RepeatButtonAutomationPeer.cs
- DelegatingConfigHost.cs
- GlyphingCache.cs
- GeometryCombineModeValidation.cs
- TcpStreams.cs
- FixedFindEngine.cs
- DataGridSortCommandEventArgs.cs
- Rect3D.cs
- TranslateTransform3D.cs
- CodeValidator.cs
- SecurityElement.cs
- ContextStack.cs
- DataGridViewCellParsingEventArgs.cs
- Adorner.cs
- ScrollItemProviderWrapper.cs
- TerminatorSinks.cs
- SuppressMessageAttribute.cs
- DbTransaction.cs
- Serializer.cs
- LinqDataSourceContextData.cs
- ResXBuildProvider.cs
- MediaElementAutomationPeer.cs
- ElementNotEnabledException.cs
- LogConverter.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ToolboxControl.cs
- DataGridViewColumnTypePicker.cs
- ObjectQuery.cs
- WindowsMenu.cs
- control.ime.cs
- DataGridViewCellValueEventArgs.cs
- AssemblySettingAttributes.cs
- CollectionChangeEventArgs.cs
- ProtectedProviderSettings.cs
- DesignerActionMethodItem.cs
- CaseCqlBlock.cs
- baseaxisquery.cs
- TextMessageEncodingElement.cs
- ProfileInfo.cs
- ExecutionContext.cs
- NumericUpDownAccelerationCollection.cs
- TreeNodeConverter.cs
- EntityDataSourceSelectingEventArgs.cs
- UrlUtility.cs
- SafeHandles.cs
- EventLogEntryCollection.cs
- SchemaElement.cs
- TypeConverterHelper.cs
- MarshalDirectiveException.cs
- Size.cs
- ManualResetEvent.cs
- DeferredReference.cs
- AssociationType.cs
- TranslateTransform.cs
- ValueProviderWrapper.cs
- CheckBox.cs
- SoapHelper.cs
- TemplatedWizardStep.cs
- RuleDefinitions.cs
- DirectoryObjectSecurity.cs
- TdsParserSafeHandles.cs
- InternalCache.cs
- followingsibling.cs
- IntegerFacetDescriptionElement.cs
- ErrorHandler.cs
- SwitchCase.cs
- BulletedList.cs
- MatrixValueSerializer.cs
- BCryptNative.cs
- MexHttpBindingElement.cs