Code:
/ DotNET / DotNET / 8.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
- NameTable.cs
- SqlInternalConnectionTds.cs
- ProjectionPlanCompiler.cs
- ResourcesChangeInfo.cs
- DbConnectionClosed.cs
- DataSourceCacheDurationConverter.cs
- ResponseStream.cs
- MetadataItem.cs
- XmlDataSourceView.cs
- ExtensionQuery.cs
- ToolStripPanelRenderEventArgs.cs
- ClrProviderManifest.cs
- XmlSchemaAttribute.cs
- EndOfStreamException.cs
- SimpleTextLine.cs
- ReflectionUtil.cs
- GACMembershipCondition.cs
- UnsafeNativeMethods.cs
- CommandLibraryHelper.cs
- StorageConditionPropertyMapping.cs
- RtfControlWordInfo.cs
- HtmlTextArea.cs
- SynchronizedMessageSource.cs
- XslTransform.cs
- BufferedStream.cs
- DecoderFallbackWithFailureFlag.cs
- InternalBufferOverflowException.cs
- ZoomComboBox.cs
- StringCollectionMarkupSerializer.cs
- KeyTime.cs
- ValidatorUtils.cs
- Brush.cs
- RuleProcessor.cs
- ScrollEventArgs.cs
- XsltArgumentList.cs
- Marshal.cs
- RSAPKCS1KeyExchangeFormatter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Facet.cs
- RegexFCD.cs
- UnsafeNativeMethods.cs
- NameNode.cs
- MemberInfoSerializationHolder.cs
- SessionStateSection.cs
- FormsAuthenticationUser.cs
- sqlnorm.cs
- CharacterBuffer.cs
- RenderCapability.cs
- AddingNewEventArgs.cs
- DataViewSetting.cs
- SourceFileBuildProvider.cs
- ResourceAttributes.cs
- ImageSource.cs
- srgsitem.cs
- StrongNamePublicKeyBlob.cs
- ResourceDefaultValueAttribute.cs
- BooleanConverter.cs
- ClientSettingsSection.cs
- AuthenticationSection.cs
- ManifestResourceInfo.cs
- SchemaObjectWriter.cs
- StrongName.cs
- WebPartsPersonalization.cs
- SqlDependency.cs
- FormsAuthenticationCredentials.cs
- WSSecureConversationDec2005.cs
- ByteViewer.cs
- TextPatternIdentifiers.cs
- BamlMapTable.cs
- AvTraceDetails.cs
- Matrix.cs
- RichTextBoxAutomationPeer.cs
- HtmlInputFile.cs
- GuidConverter.cs
- RequestChannel.cs
- JournalEntryStack.cs
- NameValueSectionHandler.cs
- DataControlFieldCell.cs
- base64Transforms.cs
- InputLanguageManager.cs
- CodeMethodInvokeExpression.cs
- X509Certificate2Collection.cs
- MediaEntryAttribute.cs
- MonitoringDescriptionAttribute.cs
- contentDescriptor.cs
- TableItemStyle.cs
- PropertyMetadata.cs
- DataGridViewRowCollection.cs
- PrinterSettings.cs
- DataGridSortCommandEventArgs.cs
- MemberPath.cs
- XmlSchemaElement.cs
- HtmlEmptyTagControlBuilder.cs
- OletxDependentTransaction.cs
- EncoderExceptionFallback.cs
- SessionStateItemCollection.cs
- __FastResourceComparer.cs
- _NestedSingleAsyncResult.cs
- NativeMethods.cs
- odbcmetadatacollectionnames.cs