Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TypeName.cs
- Stroke2.cs
- ExpressionSelection.cs
- handlecollector.cs
- CheckBoxStandardAdapter.cs
- HttpModuleCollection.cs
- ToolStripDropDownButton.cs
- PropertyConverter.cs
- CompileXomlTask.cs
- ListBox.cs
- PropertyGridEditorPart.cs
- DataGridViewCellParsingEventArgs.cs
- EnumValAlphaComparer.cs
- ClientFormsAuthenticationCredentials.cs
- ScriptManager.cs
- DataTableReader.cs
- SoapIgnoreAttribute.cs
- ClientTargetSection.cs
- DataServiceClientException.cs
- selecteditemcollection.cs
- MouseWheelEventArgs.cs
- XmlCompatibilityReader.cs
- WebPartMenuStyle.cs
- HttpListenerException.cs
- EntityProviderFactory.cs
- AutomationFocusChangedEventArgs.cs
- XDRSchema.cs
- FrameworkElementAutomationPeer.cs
- CodeTypeOfExpression.cs
- XmlSchemaComplexContentRestriction.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- InstancePersistence.cs
- SourceLineInfo.cs
- ExternalFile.cs
- DataGridViewCellValidatingEventArgs.cs
- WebPartCollection.cs
- AnonymousIdentificationModule.cs
- SerializationHelper.cs
- HMAC.cs
- ReferencedCollectionType.cs
- XsltLibrary.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ADConnectionHelper.cs
- Visitors.cs
- TypeLoader.cs
- CacheHelper.cs
- CapabilitiesPattern.cs
- NamedPipeProcessProtocolHandler.cs
- FtpWebRequest.cs
- PartialClassGenerationTask.cs
- FindSimilarActivitiesVerb.cs
- InternalBufferOverflowException.cs
- CacheForPrimitiveTypes.cs
- AutomationElementIdentifiers.cs
- FtpRequestCacheValidator.cs
- LZCodec.cs
- streamingZipPartStream.cs
- HttpCacheVary.cs
- TextBoxDesigner.cs
- DiagnosticEventProvider.cs
- Deserializer.cs
- XmlSchemaObjectTable.cs
- DesignerEditorPartChrome.cs
- FtpWebRequest.cs
- SoapReflectionImporter.cs
- ListViewGroupConverter.cs
- TaskFormBase.cs
- DiscoveryOperationContext.cs
- ResourceDisplayNameAttribute.cs
- WS2007FederationHttpBindingCollectionElement.cs
- WebPartPersonalization.cs
- ToolStripPanelDesigner.cs
- WebPartConnection.cs
- Tag.cs
- LockRecursionException.cs
- ConnectionPoolManager.cs
- SqlServer2KCompatibilityCheck.cs
- DropDownList.cs
- cryptoapiTransform.cs
- ZipArchive.cs
- ResourceProperty.cs
- IconHelper.cs
- SudsWriter.cs
- TextCollapsingProperties.cs
- TrackingConditionCollection.cs
- TileModeValidation.cs
- rsa.cs
- localization.cs
- GlobalProxySelection.cs
- DataColumnMappingCollection.cs
- ImportContext.cs
- _DomainName.cs
- SqlDataSourceQueryEditorForm.cs
- StylusButtonEventArgs.cs
- BaseAsyncResult.cs
- GeometryDrawing.cs
- Figure.cs
- ReadOnlyDictionary.cs
- ActivatedMessageQueue.cs
- ClaimTypes.cs