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
- wgx_exports.cs
- MetadataFile.cs
- ImportCatalogPart.cs
- ResourceDescriptionAttribute.cs
- BaseParaClient.cs
- SynchronizingStream.cs
- ApplicationProxyInternal.cs
- PathGeometry.cs
- TraceLog.cs
- ResolveCriteria11.cs
- ExpressionBinding.cs
- DrawingAttributesDefaultValueFactory.cs
- AnimationException.cs
- PaperSource.cs
- XPathDocumentNavigator.cs
- AttachInfo.cs
- BuildManagerHost.cs
- DesignerActionUIService.cs
- PagerSettings.cs
- MimePart.cs
- CodeCompileUnit.cs
- SafeUserTokenHandle.cs
- InvokePattern.cs
- InheritanceRules.cs
- SystemColorTracker.cs
- FormViewUpdateEventArgs.cs
- DetailsViewActionList.cs
- CanonicalXml.cs
- InheritedPropertyChangedEventArgs.cs
- ArrangedElement.cs
- LowerCaseStringConverter.cs
- ReflectionUtil.cs
- FixedSOMTable.cs
- dtdvalidator.cs
- DataSourceCache.cs
- QilStrConcatenator.cs
- WorkflowRuntimeSection.cs
- AdPostCacheSubstitution.cs
- PolicyLevel.cs
- ProfileGroupSettingsCollection.cs
- SmtpReplyReaderFactory.cs
- MethodMessage.cs
- QueryInterceptorAttribute.cs
- ReflectionPermission.cs
- FormsAuthenticationEventArgs.cs
- ContextMenuAutomationPeer.cs
- ToolStripItemClickedEventArgs.cs
- HwndSubclass.cs
- OrderingExpression.cs
- CompressionTransform.cs
- NoResizeHandleGlyph.cs
- ConfigXmlDocument.cs
- Transform.cs
- Ipv6Element.cs
- LayoutEditorPart.cs
- COM2Properties.cs
- MulticastDelegate.cs
- RightsManagementPermission.cs
- WebPartZone.cs
- WSTrustDec2005.cs
- LinkDescriptor.cs
- DataGridViewCellConverter.cs
- FormViewRow.cs
- ContextStack.cs
- TextSerializer.cs
- AutoScrollExpandMessageFilter.cs
- HtmlAnchor.cs
- NGCSerializer.cs
- Int32Storage.cs
- Marshal.cs
- InputBuffer.cs
- ItemCollectionEditor.cs
- Native.cs
- MarkupExtensionParser.cs
- UpdateCompiler.cs
- clipboard.cs
- StaticExtension.cs
- XmlTextReader.cs
- Documentation.cs
- SecurityProtocolCorrelationState.cs
- Crc32Helper.cs
- ResourceProviderFactory.cs
- AccessKeyManager.cs
- SqlStatistics.cs
- ReverseInheritProperty.cs
- FlowSwitch.cs
- RemoteWebConfigurationHost.cs
- Exceptions.cs
- XmlComplianceUtil.cs
- CultureInfo.cs
- WebServiceResponseDesigner.cs
- PersonalizationStateInfo.cs
- OleDbConnection.cs
- MenuItem.cs
- ChildChangedEventArgs.cs
- SqlDataSourceCommandEventArgs.cs
- SoapServerProtocol.cs
- CustomAttributeBuilder.cs
- TypeUsageBuilder.cs
- ThreadExceptionDialog.cs