Code:
/ FX-1434 / FX-1434 / 1.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
- RecognizeCompletedEventArgs.cs
- ApplicationTrust.cs
- ControlType.cs
- Exceptions.cs
- DesignTimeData.cs
- DataSourceControl.cs
- MultidimensionalArrayItemReference.cs
- InvalidWMPVersionException.cs
- DynamicArgumentDesigner.xaml.cs
- HttpContextWrapper.cs
- Rect.cs
- GridViewRowCollection.cs
- StyleXamlParser.cs
- Pen.cs
- TcpChannelHelper.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Label.cs
- ResXResourceReader.cs
- RelationshipNavigation.cs
- ButtonBase.cs
- DataServiceRequest.cs
- TypeDependencyAttribute.cs
- ColorConvertedBitmap.cs
- NativeMethods.cs
- SqlComparer.cs
- MobileControlsSectionHelper.cs
- VarRemapper.cs
- StrongNameMembershipCondition.cs
- StyleXamlParser.cs
- HebrewNumber.cs
- ToolStripSplitStackLayout.cs
- SoapBinding.cs
- FrameworkRichTextComposition.cs
- AccessibleObject.cs
- _TimerThread.cs
- BridgeDataRecord.cs
- ColorPalette.cs
- CfgParser.cs
- SimpleFileLog.cs
- StylusPointPropertyUnit.cs
- DataGridColumnHeaderAutomationPeer.cs
- UrlAuthorizationModule.cs
- WebServicesDescriptionAttribute.cs
- VirtualDirectoryMapping.cs
- TransformGroup.cs
- QueryComponents.cs
- SocketInformation.cs
- ToolStripGripRenderEventArgs.cs
- ArrowControl.xaml.cs
- Utils.cs
- IndexerNameAttribute.cs
- LinqDataSourceView.cs
- SocketElement.cs
- DataColumn.cs
- CodeDelegateCreateExpression.cs
- XPathDocument.cs
- ConfigurationValidatorBase.cs
- BamlTreeMap.cs
- XmlQualifiedName.cs
- PrintDialog.cs
- TrimSurroundingWhitespaceAttribute.cs
- AlternateView.cs
- XsltLoader.cs
- ProjectionRewriter.cs
- PrivacyNoticeBindingElementImporter.cs
- SqlErrorCollection.cs
- Shape.cs
- C14NUtil.cs
- BamlTreeMap.cs
- InheritedPropertyChangedEventArgs.cs
- Run.cs
- BaseAutoFormat.cs
- panel.cs
- DebugHandleTracker.cs
- Viewport3DAutomationPeer.cs
- QilIterator.cs
- FieldToken.cs
- UIElementParagraph.cs
- FaultContractAttribute.cs
- IndexedEnumerable.cs
- WindowsHyperlink.cs
- ComplexPropertyEntry.cs
- SynchronizedDisposablePool.cs
- SqlWriter.cs
- Publisher.cs
- Viewport3DVisual.cs
- StackOverflowException.cs
- AmbientProperties.cs
- Splitter.cs
- XPathDocumentIterator.cs
- Renderer.cs
- Encoder.cs
- NamespaceCollection.cs
- PageContentAsyncResult.cs
- ValueType.cs
- TypeElementCollection.cs
- UnsafeNativeMethodsPenimc.cs
- ReliableMessagingVersionConverter.cs
- DataGridViewSelectedCellCollection.cs
- EncoderParameter.cs