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
- NativeCppClassAttribute.cs
- MachineSettingsSection.cs
- PathStreamGeometryContext.cs
- SingleAnimation.cs
- HatchBrush.cs
- CommonObjectSecurity.cs
- ValidatingReaderNodeData.cs
- RawUIStateInputReport.cs
- ClientSettings.cs
- ButtonBaseDesigner.cs
- UxThemeWrapper.cs
- XmlEnumAttribute.cs
- EventManager.cs
- AssertSection.cs
- JoinSymbol.cs
- RoutedUICommand.cs
- Root.cs
- ExceptionUtil.cs
- SecurityTraceRecordHelper.cs
- RegexReplacement.cs
- SelectionEditor.cs
- SourceFileBuildProvider.cs
- DataSourceCache.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- GiveFeedbackEvent.cs
- SerializationFieldInfo.cs
- SID.cs
- TransformValueSerializer.cs
- ChangePasswordAutoFormat.cs
- ScrollPattern.cs
- ByteFacetDescriptionElement.cs
- ListBindableAttribute.cs
- Helpers.cs
- _HeaderInfo.cs
- TextServicesCompartment.cs
- AdapterDictionary.cs
- LinkButton.cs
- AccessDataSource.cs
- CompilerError.cs
- ActionMismatchAddressingException.cs
- SmiTypedGetterSetter.cs
- XamlWriter.cs
- KeyEvent.cs
- GatewayDefinition.cs
- ListViewItem.cs
- FileSystemEventArgs.cs
- ToolStripPanelRow.cs
- CompilerScope.cs
- RemotingConfigParser.cs
- KnownTypes.cs
- RequestSecurityTokenSerializer.cs
- XmlSchemaAny.cs
- DataGridViewCellParsingEventArgs.cs
- TableLayoutCellPaintEventArgs.cs
- ScrollContentPresenter.cs
- ConfigurationValidatorBase.cs
- Size3DValueSerializer.cs
- MobileTemplatedControlDesigner.cs
- DeclarativeExpressionConditionDeclaration.cs
- DragCompletedEventArgs.cs
- DataControlCommands.cs
- BasicAsyncResult.cs
- AutoGeneratedField.cs
- Wildcard.cs
- ListControlBoundActionList.cs
- AxisAngleRotation3D.cs
- XPathBinder.cs
- CustomErrorsSectionWrapper.cs
- SafeHGlobalHandleCritical.cs
- AuthenticationSection.cs
- TransportOutputChannel.cs
- Dynamic.cs
- SystemIPv4InterfaceProperties.cs
- CompositeDuplexBindingElement.cs
- WasAdminWrapper.cs
- HttpResponse.cs
- MarkupWriter.cs
- EntityViewGenerationAttribute.cs
- MimeMapping.cs
- RequestCacheManager.cs
- NonBatchDirectoryCompiler.cs
- BufferedWebEventProvider.cs
- _FtpControlStream.cs
- XPathAxisIterator.cs
- DataControlFieldHeaderCell.cs
- DataRowChangeEvent.cs
- XPathDocument.cs
- SlotInfo.cs
- SchemaAttDef.cs
- TypeConverterValueSerializer.cs
- EventLogPermissionEntryCollection.cs
- ReflectionHelper.cs
- Graphics.cs
- DeploymentExceptionMapper.cs
- WindowsFormsLinkLabel.cs
- DataGridCommandEventArgs.cs
- CmsInterop.cs
- LayoutEvent.cs
- ThicknessConverter.cs
- SkewTransform.cs