Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomLineCap.cs
- QuadTree.cs
- HtmlElementCollection.cs
- ActivityMarkupSerializer.cs
- ProxySimple.cs
- LicenseProviderAttribute.cs
- SqlNodeTypeOperators.cs
- WebSysDescriptionAttribute.cs
- Drawing.cs
- GeneratedContractType.cs
- LocatorGroup.cs
- _ConnectionGroup.cs
- ProjectionNode.cs
- StatusBarPanel.cs
- Trace.cs
- ChangeBlockUndoRecord.cs
- BuildManagerHost.cs
- WebBrowserUriTypeConverter.cs
- TableLayoutStyleCollection.cs
- RedistVersionInfo.cs
- MediaTimeline.cs
- KeyGesture.cs
- XmlDocumentFragment.cs
- LambdaValue.cs
- EventArgs.cs
- GroupBoxAutomationPeer.cs
- FindProgressChangedEventArgs.cs
- Timer.cs
- ProcessThreadDesigner.cs
- ApplicationId.cs
- AppLevelCompilationSectionCache.cs
- OracleCommandSet.cs
- HandleCollector.cs
- SpellCheck.cs
- WebBrowsableAttribute.cs
- DiagnosticTrace.cs
- OpacityConverter.cs
- TypeUtil.cs
- _ChunkParse.cs
- DataGridViewAccessibleObject.cs
- TextEditorMouse.cs
- Vector3D.cs
- SamlSerializer.cs
- CodeVariableDeclarationStatement.cs
- ClockGroup.cs
- AppSettingsSection.cs
- Directory.cs
- HttpPostedFileBase.cs
- XmlMembersMapping.cs
- IChannel.cs
- DefaultTextStoreTextComposition.cs
- DynamicFilter.cs
- InvalidWMPVersionException.cs
- TextFormatterImp.cs
- dataobject.cs
- dataobject.cs
- ComponentFactoryHelpers.cs
- ContractMapping.cs
- MenuItemBindingCollection.cs
- ToolBar.cs
- AssemblyBuilder.cs
- Encoder.cs
- SymDocumentType.cs
- DispatcherExceptionEventArgs.cs
- ObjectDataSourceEventArgs.cs
- DataViewManager.cs
- DesignerTextWriter.cs
- TemplateManager.cs
- PrimitiveType.cs
- MaterializeFromAtom.cs
- TimeoutConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WrappedOptions.cs
- OracleNumber.cs
- StrongNamePublicKeyBlob.cs
- HtmlTableCellCollection.cs
- GridProviderWrapper.cs
- NonPrimarySelectionGlyph.cs
- TextEditorCharacters.cs
- CapacityStreamGeometryContext.cs
- SafeUserTokenHandle.cs
- ToolboxBitmapAttribute.cs
- AttributeQuery.cs
- AccessViolationException.cs
- MemberInfoSerializationHolder.cs
- GridViewPageEventArgs.cs
- NetworkInformationException.cs
- IQueryable.cs
- dbdatarecord.cs
- DynamicObject.cs
- SqlCacheDependencyDatabaseCollection.cs
- PtsPage.cs
- HtmlElementErrorEventArgs.cs
- WebEventCodes.cs
- PageThemeBuildProvider.cs
- XmlBinaryReader.cs
- SchemaInfo.cs
- DoubleCollectionValueSerializer.cs
- ExpressionPrefixAttribute.cs
- AssemblyInfo.cs