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
- DataStreamFromComStream.cs
- DefaultHttpHandler.cs
- AudioLevelUpdatedEventArgs.cs
- KeyValueInternalCollection.cs
- SynchronizedDispatch.cs
- ProviderConnectionPointCollection.cs
- UnionExpr.cs
- DataViewManagerListItemTypeDescriptor.cs
- ObjectNavigationPropertyMapping.cs
- RowsCopiedEventArgs.cs
- WebExceptionStatus.cs
- control.ime.cs
- LoginView.cs
- GroupBox.cs
- NonClientArea.cs
- DashStyles.cs
- EntitySqlQueryState.cs
- TreeViewImageGenerator.cs
- TextFormatter.cs
- FormatException.cs
- DbSetClause.cs
- AppearanceEditorPart.cs
- ArrayMergeHelper.cs
- RuleSet.cs
- SqlNodeTypeOperators.cs
- SqlLiftIndependentRowExpressions.cs
- SvcMapFileSerializer.cs
- XmlNode.cs
- PeerNameRegistration.cs
- DataGridBoundColumn.cs
- PerfService.cs
- M3DUtil.cs
- TextPointer.cs
- ExpandSegmentCollection.cs
- BoundingRectTracker.cs
- StateWorkerRequest.cs
- WindowInteractionStateTracker.cs
- StorageRoot.cs
- OleStrCAMarshaler.cs
- CodeTypeMemberCollection.cs
- MessageAction.cs
- TagMapInfo.cs
- SettingsPropertyValue.cs
- TextSerializer.cs
- DeflateInput.cs
- GridViewSortEventArgs.cs
- ParallelTimeline.cs
- XmlStreamNodeWriter.cs
- Button.cs
- DocumentSequence.cs
- PrivilegeNotHeldException.cs
- XmlnsDictionary.cs
- GlyphInfoList.cs
- SQLInt32.cs
- DesignerAttribute.cs
- LineVisual.cs
- GenericsNotImplementedException.cs
- ValueProviderWrapper.cs
- InitializingNewItemEventArgs.cs
- Not.cs
- ChineseLunisolarCalendar.cs
- XpsFilter.cs
- XmlSchemaValidationException.cs
- EndEvent.cs
- ValueUtilsSmi.cs
- SmiRequestExecutor.cs
- XmlMtomReader.cs
- OAVariantLib.cs
- XmlSerializerAssemblyAttribute.cs
- BaseDataBoundControl.cs
- CardSpaceShim.cs
- VisualCollection.cs
- UnicodeEncoding.cs
- TimelineCollection.cs
- FrameworkElementAutomationPeer.cs
- Condition.cs
- ProfilePropertyNameValidator.cs
- HandlerBase.cs
- StretchValidation.cs
- HttpTransportElement.cs
- NameSpaceEvent.cs
- OutOfMemoryException.cs
- StateManagedCollection.cs
- SqlParameter.cs
- COM2Properties.cs
- ToolStripDropDownClosingEventArgs.cs
- ImageList.cs
- ScriptingSectionGroup.cs
- GetIndexBinder.cs
- VariableBinder.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ProxyWebPartManager.cs
- FormViewCommandEventArgs.cs
- EntityDataSourceUtil.cs
- XmlExtensionFunction.cs
- OleDbMetaDataFactory.cs
- BamlRecordHelper.cs
- PageCatalogPart.cs
- ViewGenerator.cs
- EventRoute.cs