Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _emptywebproxy.cs / 1305376 / _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); } } } // 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
- Timer.cs
- FormsAuthentication.cs
- GenericEnumConverter.cs
- DataGridItemAttachedStorage.cs
- DocobjHost.cs
- CultureTableRecord.cs
- JoinSymbol.cs
- BufferedReceiveManager.cs
- Documentation.cs
- SystemIPv4InterfaceProperties.cs
- PluggableProtocol.cs
- _Rfc2616CacheValidators.cs
- DiscoveryClientChannelBase.cs
- SimpleBitVector32.cs
- UIElementParaClient.cs
- CharacterBuffer.cs
- TextEditorContextMenu.cs
- CleanUpVirtualizedItemEventArgs.cs
- TabItemAutomationPeer.cs
- Receive.cs
- ActiveXHost.cs
- TextTreeText.cs
- Ref.cs
- Double.cs
- ResourcePool.cs
- Sql8ExpressionRewriter.cs
- MailDefinition.cs
- WindowsFormsHost.cs
- PropertySourceInfo.cs
- NumericUpDownAcceleration.cs
- AppLevelCompilationSectionCache.cs
- ReflectionUtil.cs
- BitSet.cs
- CategoryGridEntry.cs
- BufferModeSettings.cs
- DialogWindow.cs
- ITextView.cs
- OleCmdHelper.cs
- ButtonFieldBase.cs
- TypeResolvingOptions.cs
- SingleStorage.cs
- DataErrorValidationRule.cs
- SoapHeaderException.cs
- XPathConvert.cs
- XmlDocumentFragment.cs
- AdornerLayer.cs
- XmlReflectionImporter.cs
- XmlC14NWriter.cs
- Literal.cs
- ProvidersHelper.cs
- DetailsViewDeletedEventArgs.cs
- Setter.cs
- HMAC.cs
- Resources.Designer.cs
- NullEntityWrapper.cs
- NumericUpDown.cs
- ResXResourceSet.cs
- StrongNameUtility.cs
- FixedPageProcessor.cs
- ControlPager.cs
- ToolboxItem.cs
- CustomAttributeSerializer.cs
- PropertyInformationCollection.cs
- LowerCaseStringConverter.cs
- SymmetricKey.cs
- SatelliteContractVersionAttribute.cs
- SemaphoreSecurity.cs
- OledbConnectionStringbuilder.cs
- NamedObject.cs
- LabelLiteral.cs
- WebPartUtil.cs
- ContentElement.cs
- IDReferencePropertyAttribute.cs
- HTMLTextWriter.cs
- HtmlUtf8RawTextWriter.cs
- MissingFieldException.cs
- ConfigurationValidatorAttribute.cs
- FileUpload.cs
- Int16Animation.cs
- safelinkcollection.cs
- XamlFigureLengthSerializer.cs
- AuthenticationSection.cs
- SimpleType.cs
- RegisteredDisposeScript.cs
- PropertyFilterAttribute.cs
- SecurityPermission.cs
- PenThread.cs
- WorkflowApplicationEventArgs.cs
- SByte.cs
- HttpsTransportBindingElement.cs
- DataBindEngine.cs
- SerializationObjectManager.cs
- TextEffect.cs
- StateDesigner.Layouts.cs
- SQLUtility.cs
- XmlQualifiedNameTest.cs
- DataReceivedEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- EntitySqlQueryState.cs
- TextTreeFixupNode.cs