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
- _NtlmClient.cs
- NullPackagingPolicy.cs
- ClosableStream.cs
- FormParameter.cs
- WebBrowserEvent.cs
- BackgroundWorker.cs
- NonSerializedAttribute.cs
- EventPropertyMap.cs
- XPathBinder.cs
- FilteredSchemaElementLookUpTable.cs
- CompensateDesigner.cs
- ReferencedCategoriesDocument.cs
- BevelBitmapEffect.cs
- TypeGeneratedEventArgs.cs
- AdornerLayer.cs
- XmlNullResolver.cs
- NavigationProperty.cs
- SiteMembershipCondition.cs
- SchemaNotation.cs
- DbModificationCommandTree.cs
- DataReceivedEventArgs.cs
- WebPartMinimizeVerb.cs
- DataErrorValidationRule.cs
- NameValueFileSectionHandler.cs
- NameValuePermission.cs
- Style.cs
- Mappings.cs
- MsmqIntegrationInputChannel.cs
- TemplateApplicationHelper.cs
- KeyEvent.cs
- NullReferenceException.cs
- PathGradientBrush.cs
- Soap.cs
- SwitchCase.cs
- DataServiceResponse.cs
- parserscommon.cs
- EmptyTextWriter.cs
- ObjectQuery_EntitySqlExtensions.cs
- WebBrowserBase.cs
- InputMethod.cs
- EdmComplexPropertyAttribute.cs
- ThreadPool.cs
- FileUtil.cs
- HtmlInputText.cs
- PartManifestEntry.cs
- QueryTaskGroupState.cs
- TypeGeneratedEventArgs.cs
- SemaphoreFullException.cs
- WebPartManagerInternals.cs
- WebPartEditVerb.cs
- XamlDesignerSerializationManager.cs
- SqlBuilder.cs
- OrderByBuilder.cs
- UrlRoutingModule.cs
- ForeignConstraint.cs
- DataViewSetting.cs
- Timer.cs
- QuadraticBezierSegment.cs
- Rights.cs
- TextFormatter.cs
- SqlCacheDependencySection.cs
- AxisAngleRotation3D.cs
- TextRenderer.cs
- SoapExtensionTypeElementCollection.cs
- ConversionValidationRule.cs
- InternalRelationshipCollection.cs
- TraceContextEventArgs.cs
- StreamInfo.cs
- SafeSecurityHandles.cs
- PrintDialog.cs
- SystemInfo.cs
- BaseTemplateParser.cs
- uribuilder.cs
- CollectionBase.cs
- ReadOnlyNameValueCollection.cs
- ResourcesBuildProvider.cs
- LOSFormatter.cs
- CustomErrorsSection.cs
- TypeConvertions.cs
- OutputCacheSection.cs
- LassoHelper.cs
- TextEditorMouse.cs
- FloaterBaseParaClient.cs
- Setter.cs
- ComplusTypeValidator.cs
- XmlAttributeCollection.cs
- HandleCollector.cs
- PropertyValueUIItem.cs
- Reference.cs
- PartialCachingControl.cs
- ContentPlaceHolder.cs
- SoapObjectReader.cs
- ParameterBuilder.cs
- SafeSerializationManager.cs
- BitmapEffectInputData.cs
- AssemblyName.cs
- RegexCompilationInfo.cs
- JsonDataContract.cs
- FrugalMap.cs
- UnmanagedHandle.cs