Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / _emptywebproxy.cs / 1 / _emptywebproxy.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net { using System.Collections.Generic; [Serializable] internal sealed class EmptyWebProxy : IAutoWebProxy { [NonSerialized] private ICredentials m_credentials; public EmptyWebProxy() { } // // IWebProxy interface // public Uri GetProxy(Uri uri) { // this method won't get called by NetClasses because of the IsBypassed test below return uri; } public bool IsBypassed(Uri uri) { return true; // no proxy, always bypasses } public ICredentials Credentials { get { return m_credentials; } set { m_credentials = value; // doesn't do anything, but doesn't break contract either } } // // IAutoWebProxy interface // ProxyChain IAutoWebProxy.GetProxies(Uri destination) { return new DirectProxy(destination); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WizardPanelChangingEventArgs.cs
- ValidatingPropertiesEventArgs.cs
- SqlNodeTypeOperators.cs
- MergablePropertyAttribute.cs
- SortedDictionary.cs
- Substitution.cs
- WinEventTracker.cs
- RouteItem.cs
- XmlDataDocument.cs
- ResourceExpression.cs
- Site.cs
- XomlSerializationHelpers.cs
- DataGridViewCellEventArgs.cs
- CodeIdentifiers.cs
- SrgsGrammarCompiler.cs
- HideDisabledControlAdapter.cs
- DataObject.cs
- DataGridPageChangedEventArgs.cs
- FileSystemInfo.cs
- TextCharacters.cs
- ViewGenerator.cs
- Config.cs
- HandledEventArgs.cs
- HideDisabledControlAdapter.cs
- DataKey.cs
- NotificationContext.cs
- FileVersionInfo.cs
- DbConnectionPoolCounters.cs
- ActivityDesignerLayoutSerializers.cs
- DataGridViewUtilities.cs
- TypeTypeConverter.cs
- FrameworkRichTextComposition.cs
- CounterCreationDataCollection.cs
- XmlSchemaGroup.cs
- SpeakProgressEventArgs.cs
- StructuredTypeEmitter.cs
- SecondaryIndexDefinition.cs
- StateMachineTimers.cs
- NativeRightsManagementAPIsStructures.cs
- SortFieldComparer.cs
- SiteMapSection.cs
- AnnotationComponentManager.cs
- Selection.cs
- ClientCultureInfo.cs
- PerformanceCounter.cs
- SqlClientFactory.cs
- DependencyPropertyKind.cs
- TextTreeNode.cs
- PageThemeCodeDomTreeGenerator.cs
- RijndaelManaged.cs
- ObjectListSelectEventArgs.cs
- Int32CAMarshaler.cs
- FactoryGenerator.cs
- XPathPatternBuilder.cs
- DocumentSchemaValidator.cs
- EmptyCollection.cs
- CodeAccessSecurityEngine.cs
- TrackingProfileDeserializationException.cs
- KoreanCalendar.cs
- StorageModelBuildProvider.cs
- SQLChars.cs
- StringKeyFrameCollection.cs
- XmlEntity.cs
- RolePrincipal.cs
- UnmanagedMemoryStream.cs
- Pen.cs
- ClientConfigurationSystem.cs
- ClockGroup.cs
- ManipulationLogic.cs
- OutputCacheModule.cs
- GatewayDefinition.cs
- translator.cs
- ObjectAssociationEndMapping.cs
- HierarchicalDataBoundControl.cs
- AsymmetricSignatureDeformatter.cs
- CompilerTypeWithParams.cs
- GradientBrush.cs
- XmlQualifiedName.cs
- ObjectCloneHelper.cs
- DataContract.cs
- RelationshipFixer.cs
- ISAPIWorkerRequest.cs
- FontStretchConverter.cs
- SqlCacheDependencyDatabaseCollection.cs
- MembershipSection.cs
- StyleHelper.cs
- ResolveMatchesMessage11.cs
- CapabilitiesRule.cs
- CurrentChangingEventArgs.cs
- BindingSourceDesigner.cs
- HatchBrush.cs
- DBDataPermissionAttribute.cs
- StoreItemCollection.Loader.cs
- XPathDocument.cs
- BooleanConverter.cs
- HttpEncoder.cs
- DynamicActionMessageFilter.cs
- ControlBindingsCollection.cs
- WindowsListViewGroupHelper.cs
- MessageEnumerator.cs