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
- PeerValidationBehavior.cs
- MetafileHeaderWmf.cs
- Label.cs
- CommonObjectSecurity.cs
- ellipse.cs
- BamlTreeMap.cs
- XmlILOptimizerVisitor.cs
- PropertyMappingExceptionEventArgs.cs
- Popup.cs
- DriveInfo.cs
- EntityContainerEmitter.cs
- AdditionalEntityFunctions.cs
- RijndaelManaged.cs
- CorrelationManager.cs
- sqlstateclientmanager.cs
- CounterCreationDataCollection.cs
- PassportAuthenticationModule.cs
- ToolBarOverflowPanel.cs
- RuleInfoComparer.cs
- StrokeRenderer.cs
- UrlMappingCollection.cs
- Model3D.cs
- EmptyWorkItem.cs
- SettingsPropertyNotFoundException.cs
- CacheChildrenQuery.cs
- ParameterEditorUserControl.cs
- IODescriptionAttribute.cs
- ProcessThreadCollection.cs
- NamedPermissionSet.cs
- XmlBindingWorker.cs
- KeyValueInternalCollection.cs
- DataObjectPastingEventArgs.cs
- RestHandlerFactory.cs
- DataSpaceManager.cs
- Parameter.cs
- ExcCanonicalXml.cs
- Rect3D.cs
- XPathSelectionIterator.cs
- KeySplineConverter.cs
- BamlBinaryReader.cs
- FixedPageProcessor.cs
- CompilationSection.cs
- DictionarySectionHandler.cs
- XmlCodeExporter.cs
- EnterpriseServicesHelper.cs
- DesignUtil.cs
- MimeImporter.cs
- TextElementCollection.cs
- X509CertificateClaimSet.cs
- CodeObject.cs
- MarshalDirectiveException.cs
- Oid.cs
- Collection.cs
- IDReferencePropertyAttribute.cs
- BindingSource.cs
- TextDpi.cs
- TabItem.cs
- LinqDataSourceDisposeEventArgs.cs
- Unit.cs
- HttpListenerException.cs
- GraphicsState.cs
- ReliableOutputConnection.cs
- MailMessageEventArgs.cs
- EventToken.cs
- XmlDocumentFragment.cs
- XmlObjectSerializerContext.cs
- BitConverter.cs
- FontStretches.cs
- PageThemeCodeDomTreeGenerator.cs
- ListBoxItemAutomationPeer.cs
- DesignColumn.cs
- ConfigXmlDocument.cs
- Error.cs
- ClientConfigPaths.cs
- ArraySubsetEnumerator.cs
- WebOperationContext.cs
- ServiceOperation.cs
- ADRole.cs
- ConsumerConnectionPointCollection.cs
- SpellerStatusTable.cs
- RuntimeUtils.cs
- DataTemplateKey.cs
- _AutoWebProxyScriptEngine.cs
- HtmlInputPassword.cs
- LogWriteRestartAreaAsyncResult.cs
- ProfileModule.cs
- IntersectQueryOperator.cs
- EventListenerClientSide.cs
- ByteStreamGeometryContext.cs
- ScrollBar.cs
- SymbolMethod.cs
- GeometryDrawing.cs
- ProfilePropertySettingsCollection.cs
- Single.cs
- MultiPropertyDescriptorGridEntry.cs
- GeneralTransform2DTo3DTo2D.cs
- StaticFileHandler.cs
- UrlPropertyAttribute.cs
- LeaseManager.cs
- TreeNode.cs