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
- ToolStripArrowRenderEventArgs.cs
- UserNamePasswordValidator.cs
- TextRangeSerialization.cs
- WebHttpSecurityModeHelper.cs
- DBParameter.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- SupportsPreviewControlAttribute.cs
- XPathScanner.cs
- COM2Properties.cs
- RepeatButton.cs
- ValueProviderWrapper.cs
- ObsoleteAttribute.cs
- SolidColorBrush.cs
- SchemaObjectWriter.cs
- AnchoredBlock.cs
- DataSourceControlBuilder.cs
- ForEachAction.cs
- RadioButton.cs
- StateMachineSubscriptionManager.cs
- PropertyIDSet.cs
- Matrix3D.cs
- ActivityWithResult.cs
- FixedPage.cs
- MissingFieldException.cs
- SplineKeyFrames.cs
- MemberMaps.cs
- HttpStreamXmlDictionaryReader.cs
- WebPartManager.cs
- XmlQueryContext.cs
- glyphs.cs
- JulianCalendar.cs
- XmlSchemaProviderAttribute.cs
- TimeoutValidationAttribute.cs
- SQLString.cs
- OuterGlowBitmapEffect.cs
- DeclarativeCatalogPart.cs
- XsdBuildProvider.cs
- SecurityMode.cs
- DataGridViewColumnConverter.cs
- OpenFileDialog.cs
- LinkButton.cs
- GradientStop.cs
- Splitter.cs
- URLIdentityPermission.cs
- SystemDiagnosticsSection.cs
- DBBindings.cs
- DataGridViewCellMouseEventArgs.cs
- OleDbErrorCollection.cs
- ObjectDataSourceSelectingEventArgs.cs
- PositiveTimeSpanValidator.cs
- LoginName.cs
- IndexingContentUnit.cs
- TargetControlTypeAttribute.cs
- XmlSchemaAttribute.cs
- Translator.cs
- ActivitiesCollection.cs
- EntityClientCacheKey.cs
- XmlQueryRuntime.cs
- Control.cs
- CommandID.cs
- CookielessHelper.cs
- ClusterSafeNativeMethods.cs
- GiveFeedbackEvent.cs
- ExtentCqlBlock.cs
- OrderedEnumerableRowCollection.cs
- ByteStreamMessageUtility.cs
- ADMembershipUser.cs
- XNameConverter.cs
- DataAccessor.cs
- TextSchema.cs
- Point3DAnimationUsingKeyFrames.cs
- TypeUtil.cs
- FilterException.cs
- ConfigurationElement.cs
- ControlCommandSet.cs
- DataControlField.cs
- DefaultExpression.cs
- TypeValidationEventArgs.cs
- GeometryDrawing.cs
- CodePropertyReferenceExpression.cs
- HTMLTextWriter.cs
- UriParserTemplates.cs
- Byte.cs
- SecurityContextCookieSerializer.cs
- TextDecoration.cs
- Int32CollectionValueSerializer.cs
- MD5.cs
- HttpModuleActionCollection.cs
- AssemblyCollection.cs
- COM2PictureConverter.cs
- RuntimeHandles.cs
- CoTaskMemHandle.cs
- EditingCoordinator.cs
- IconHelper.cs
- Style.cs
- SmtpAuthenticationManager.cs
- VectorCollection.cs
- ElementHostPropertyMap.cs
- SystemTcpStatistics.cs
- TextParentUndoUnit.cs