Code:
/ DotNET / DotNET / 8.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
- DeflateStream.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ParagraphVisual.cs
- Calendar.cs
- ColumnMapTranslator.cs
- DataServiceQuery.cs
- RewritingPass.cs
- ConstantCheck.cs
- MetadataPropertyCollection.cs
- ManagementPath.cs
- MonitorWrapper.cs
- PropertyReference.cs
- WorkflowElementDialog.cs
- DataGridComboBoxColumn.cs
- ItemAutomationPeer.cs
- SerializationAttributes.cs
- DbConvert.cs
- sqlpipe.cs
- DataSourceSelectArguments.cs
- RenderData.cs
- AssertUtility.cs
- RequestQueue.cs
- EntityContainerAssociationSetEnd.cs
- InvokeFunc.cs
- StandardCommands.cs
- Sql8ExpressionRewriter.cs
- SqlCaseSimplifier.cs
- KeyboardNavigation.cs
- XmlEntity.cs
- ObjectToken.cs
- CustomPopupPlacement.cs
- TemplateControlBuildProvider.cs
- ViewSimplifier.cs
- Profiler.cs
- DocumentXmlWriter.cs
- HttpConfigurationContext.cs
- LocalValueEnumerator.cs
- MenuItemStyleCollection.cs
- XmlUtf8RawTextWriter.cs
- Trigger.cs
- Inflater.cs
- XmlElement.cs
- AttachedAnnotation.cs
- DataColumnPropertyDescriptor.cs
- AxHost.cs
- RewritingSimplifier.cs
- Quaternion.cs
- EventPropertyMap.cs
- XmlExtensionFunction.cs
- SctClaimDictionary.cs
- ProcessInfo.cs
- Activator.cs
- DataSourceBooleanViewSchemaConverter.cs
- ToolStripProgressBar.cs
- DocumentOrderComparer.cs
- TextLineResult.cs
- XMLSyntaxException.cs
- PackUriHelper.cs
- SiteMapHierarchicalDataSourceView.cs
- GridViewActionList.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataControlReference.cs
- DataServiceHostWrapper.cs
- ELinqQueryState.cs
- TargetInvocationException.cs
- WinEventTracker.cs
- ConstructorNeedsTagAttribute.cs
- ValidationEventArgs.cs
- NonSerializedAttribute.cs
- TransformValueSerializer.cs
- ClientEventManager.cs
- SectionVisual.cs
- FragmentQueryProcessor.cs
- TreeViewEvent.cs
- BlurBitmapEffect.cs
- DockEditor.cs
- VirtualPathData.cs
- BuildResultCache.cs
- MenuItemAutomationPeer.cs
- InputScopeManager.cs
- WindowsSysHeader.cs
- SimpleBitVector32.cs
- ObjectDisposedException.cs
- DesignerSerializationVisibilityAttribute.cs
- FrameSecurityDescriptor.cs
- XmlUnspecifiedAttribute.cs
- MultiplexingFormatMapping.cs
- UpdateTranslator.cs
- dbenumerator.cs
- InternalRelationshipCollection.cs
- SequentialUshortCollection.cs
- AnnotationService.cs
- DataExpression.cs
- TypefaceCollection.cs
- UnsafeNativeMethods.cs
- SafeRightsManagementSessionHandle.cs
- FormViewPagerRow.cs
- LoginDesignerUtil.cs
- CellTreeNodeVisitors.cs
- TrackingMemoryStreamFactory.cs