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
- ReflectionPermission.cs
- SingleResultAttribute.cs
- autovalidator.cs
- BindableAttribute.cs
- PackagingUtilities.cs
- Exceptions.cs
- CanExecuteRoutedEventArgs.cs
- ErrorTableItemStyle.cs
- BindableAttribute.cs
- Pair.cs
- RectKeyFrameCollection.cs
- Point4DValueSerializer.cs
- SSmlParser.cs
- HttpRequestCacheValidator.cs
- ProcessModelInfo.cs
- _ServiceNameStore.cs
- StorageAssociationSetMapping.cs
- CodeParameterDeclarationExpression.cs
- TraceContextRecord.cs
- StreamReader.cs
- BindingCollection.cs
- Vector3D.cs
- ReflectTypeDescriptionProvider.cs
- ErrorHandler.cs
- InvalidDataException.cs
- MethodCallConverter.cs
- CacheManager.cs
- ExpressionVisitorHelpers.cs
- codemethodreferenceexpression.cs
- GeometryGroup.cs
- objectresult_tresulttype.cs
- COM2EnumConverter.cs
- Attributes.cs
- ObjectContextServiceProvider.cs
- HTMLTextWriter.cs
- UnknownBitmapDecoder.cs
- DelayedRegex.cs
- NavigatingCancelEventArgs.cs
- AmbientValueAttribute.cs
- EntityDataSourceDataSelectionPanel.cs
- HtmlButton.cs
- AppDomainInfo.cs
- PtsHelper.cs
- InputScopeConverter.cs
- ZoneLinkButton.cs
- Calendar.cs
- DesignerListAdapter.cs
- TreeSet.cs
- XmlUtil.cs
- StateDesigner.LayoutSelectionGlyph.cs
- FullTextBreakpoint.cs
- Point3DIndependentAnimationStorage.cs
- RequestResizeEvent.cs
- HttpModuleAction.cs
- AutomationPatternInfo.cs
- GenericTransactionFlowAttribute.cs
- ConvertBinder.cs
- SR.Designer.cs
- MemberPath.cs
- WinEventHandler.cs
- WpfPayload.cs
- StringDictionaryWithComparer.cs
- PageContentAsyncResult.cs
- ReadingWritingEntityEventArgs.cs
- GlobalizationSection.cs
- BaseDataList.cs
- OutputBuffer.cs
- _AutoWebProxyScriptWrapper.cs
- RadioButtonRenderer.cs
- _Rfc2616CacheValidators.cs
- XmlSchemaExporter.cs
- ObjectConverter.cs
- ApplicationServiceHelper.cs
- SQLCharsStorage.cs
- ParameterToken.cs
- CharAnimationUsingKeyFrames.cs
- HostExecutionContextManager.cs
- TableLayoutStyleCollection.cs
- TextProperties.cs
- _ContextAwareResult.cs
- SelectionService.cs
- DetailsViewCommandEventArgs.cs
- MemberAccessException.cs
- ConsoleCancelEventArgs.cs
- SqlDataSource.cs
- ActiveXHost.cs
- CookielessData.cs
- AttachedAnnotation.cs
- PartitionResolver.cs
- BoundField.cs
- AutomationPatternInfo.cs
- DataPagerField.cs
- UrlUtility.cs
- EnterpriseServicesHelper.cs
- NetworkInformationPermission.cs
- MissingManifestResourceException.cs
- CheckBoxList.cs
- ContractMapping.cs
- _SslStream.cs
- tooltip.cs