Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / BaseWebProxyFinder.cs / 1305376 / BaseWebProxyFinder.cs
using System; using System.Collections.Generic; namespace System.Net { // The purpose of all derived classes of WebProxyFinder is to determine the PAC file location, // download and compile the file and then execute it to retrieve the list of proxies for a certain // Uri. internal abstract class BaseWebProxyFinder : IWebProxyFinder { private AutoWebProxyState state; private AutoWebProxyScriptEngine engine; public BaseWebProxyFinder(AutoWebProxyScriptEngine engine) { this.engine = engine; } public bool IsValid { get { return (state == AutoWebProxyState.Completed) || (state == AutoWebProxyState.Uninitialized); } } public bool IsUnrecognizedScheme { get { return state == AutoWebProxyState.UnrecognizedScheme; } } public abstract bool GetProxies(Uri destination, out IListproxyList); public abstract void Abort(); public void Reset() { State = AutoWebProxyState.Uninitialized; } public void Dispose() { Dispose(true); } protected AutoWebProxyState State { get { return state; } set { state = value; } } protected AutoWebProxyScriptEngine Engine { get { return engine; } } protected abstract void Dispose(bool disposing); protected enum AutoWebProxyState { Uninitialized, DiscoveryFailure, DownloadFailure, CompilationFailure, UnrecognizedScheme, Completed } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlParserContext.cs
- ClientTargetCollection.cs
- UDPClient.cs
- CryptoConfig.cs
- BaseValidator.cs
- ReferenceConverter.cs
- PersonalizableTypeEntry.cs
- EntityUtil.cs
- SecurityDocument.cs
- DocumentReference.cs
- _NegoStream.cs
- EventHandlersDesigner.cs
- SecurityCriticalDataForSet.cs
- SqlBulkCopy.cs
- ImageListStreamer.cs
- JoinGraph.cs
- PerspectiveCamera.cs
- DocumentPageHost.cs
- BehaviorEditorPart.cs
- XPathScanner.cs
- ComplexType.cs
- XmlSchemaParticle.cs
- ImageListDesigner.cs
- updateconfighost.cs
- HttpCapabilitiesEvaluator.cs
- Compiler.cs
- ExtensionWindowResizeGrip.cs
- ToolstripProfessionalRenderer.cs
- ShapingWorkspace.cs
- OleDbFactory.cs
- TypeDescriptionProviderAttribute.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- InputLanguageCollection.cs
- PtsContext.cs
- TypeNameConverter.cs
- ConsumerConnectionPointCollection.cs
- SmtpException.cs
- RegexMatch.cs
- Context.cs
- DataGridTextBoxColumn.cs
- ExtenderHelpers.cs
- CollectionChangedEventManager.cs
- XmlLanguageConverter.cs
- CircleEase.cs
- SystemPens.cs
- SessionIDManager.cs
- IProducerConsumerCollection.cs
- StylusPointDescription.cs
- SqlFactory.cs
- VariableExpressionConverter.cs
- xmlsaver.cs
- ToolStripRendererSwitcher.cs
- ReflectionHelper.cs
- ServiceOperationListItemList.cs
- XmlSchemaComplexContentExtension.cs
- TreePrinter.cs
- XmlQueryStaticData.cs
- ExpressionNormalizer.cs
- ActivationWorker.cs
- ArraySegment.cs
- MinMaxParagraphWidth.cs
- UntrustedRecipientException.cs
- SafeRightsManagementPubHandle.cs
- WebPartDescription.cs
- UnknownWrapper.cs
- HttpCacheVary.cs
- Token.cs
- peernodestatemanager.cs
- PersonalizableTypeEntry.cs
- RightsController.cs
- SelectionItemProviderWrapper.cs
- xmlfixedPageInfo.cs
- SettingsContext.cs
- precedingsibling.cs
- SafeViewOfFileHandle.cs
- DispatcherObject.cs
- HtmlImage.cs
- AddIn.cs
- SelfIssuedAuthRSACryptoProvider.cs
- InternalConfigRoot.cs
- TriggerBase.cs
- RuleAction.cs
- OdbcRowUpdatingEvent.cs
- DataGridViewImageColumn.cs
- Roles.cs
- EntitySetDataBindingList.cs
- XmlDataDocument.cs
- ValidationErrorEventArgs.cs
- BoolLiteral.cs
- ExpressionBinding.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ServiceDesigner.cs
- HtmlMeta.cs
- Graphics.cs
- CodeEntryPointMethod.cs
- MasterPageBuildProvider.cs
- JsonFormatWriterGenerator.cs
- PrintSchema.cs
- MailAddressCollection.cs
- SchemaMapping.cs