Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebConfigurationFileMap.cs
- XPathAncestorIterator.cs
- ComponentDispatcherThread.cs
- TextServicesPropertyRanges.cs
- FontDialog.cs
- Profiler.cs
- TableLayoutPanelResizeGlyph.cs
- DataGridCell.cs
- ConnectionStringSettings.cs
- FontStretches.cs
- ImageField.cs
- TableLayoutPanel.cs
- MetadataUtil.cs
- WebServiceFaultDesigner.cs
- LocalizationParserHooks.cs
- DataSourceDescriptorCollection.cs
- CommandHelpers.cs
- WebBrowser.cs
- WmlCalendarAdapter.cs
- AmbientValueAttribute.cs
- GuidConverter.cs
- OptionalRstParameters.cs
- BindingCompleteEventArgs.cs
- FormViewDesigner.cs
- EnvironmentPermission.cs
- PingReply.cs
- PopupRootAutomationPeer.cs
- DebugInfoGenerator.cs
- HtmlAnchor.cs
- FormsAuthenticationEventArgs.cs
- SurrogateSelector.cs
- CollectionContainer.cs
- Rotation3DAnimationBase.cs
- TraceUtility.cs
- PatternMatcher.cs
- UIElementAutomationPeer.cs
- AnimationStorage.cs
- ViewGenerator.cs
- SignatureToken.cs
- QuaternionValueSerializer.cs
- Profiler.cs
- RenderingEventArgs.cs
- StringStorage.cs
- AutoCompleteStringCollection.cs
- AttachedAnnotationChangedEventArgs.cs
- ConvertBinder.cs
- MonitorWrapper.cs
- DecimalMinMaxAggregationOperator.cs
- WebColorConverter.cs
- ViewValidator.cs
- ToolStripScrollButton.cs
- SiteMapDataSourceView.cs
- StylusDevice.cs
- MessageBox.cs
- ImageAnimator.cs
- WebServiceEnumData.cs
- LostFocusEventManager.cs
- XmlDocumentSurrogate.cs
- GenericEnumerator.cs
- CommandValueSerializer.cs
- TextSearch.cs
- WebPartConnectionCollection.cs
- GridItemCollection.cs
- X509Certificate.cs
- AppearanceEditorPart.cs
- ToolStripScrollButton.cs
- NavigateEvent.cs
- DbConnectionInternal.cs
- DataListCommandEventArgs.cs
- ADMembershipUser.cs
- CounterCreationDataConverter.cs
- DiagnosticTraceSchemas.cs
- ValidatingCollection.cs
- UnsettableComboBox.cs
- CompositeControlDesigner.cs
- WhitespaceSignificantCollectionAttribute.cs
- SplitterPanel.cs
- StateItem.cs
- ConnectionsZone.cs
- TextBoxBase.cs
- OutOfMemoryException.cs
- NetworkStream.cs
- ResourceProperty.cs
- CompositeScriptReferenceEventArgs.cs
- TableChangeProcessor.cs
- Number.cs
- PropertyGridEditorPart.cs
- ClassicBorderDecorator.cs
- SplineKeyFrames.cs
- MetaModel.cs
- Deflater.cs
- DeflateStream.cs
- SecUtil.cs
- Button.cs
- ResourceWriter.cs
- CategoriesDocument.cs
- GreaterThan.cs
- AtlasWeb.Designer.cs
- Attribute.cs
- StrongNameUtility.cs