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
- SID.cs
- WebPartCatalogAddVerb.cs
- VectorKeyFrameCollection.cs
- _IPv4Address.cs
- DBAsyncResult.cs
- KeyValuePairs.cs
- RemoteWebConfigurationHost.cs
- DataViewManager.cs
- Activity.cs
- EntityDataSourceContextCreatingEventArgs.cs
- MasterPageParser.cs
- WindowShowOrOpenTracker.cs
- FragmentQueryProcessor.cs
- ClientOptions.cs
- TemplateLookupAction.cs
- glyphs.cs
- AttributeProviderAttribute.cs
- XPathChildIterator.cs
- InstanceKeyNotReadyException.cs
- BamlRecordHelper.cs
- DecoderNLS.cs
- MaskDescriptors.cs
- FlowSwitchDesigner.xaml.cs
- ThreadSafeList.cs
- ProtocolsSection.cs
- SeekableReadStream.cs
- TextParagraph.cs
- PlatformNotSupportedException.cs
- ProfileManager.cs
- XmlSchemaAppInfo.cs
- FontConverter.cs
- InvalidFilterCriteriaException.cs
- DynamicQueryableWrapper.cs
- ViewService.cs
- StorageBasedPackageProperties.cs
- XPathSingletonIterator.cs
- SqlCacheDependencyDatabaseCollection.cs
- StorageRoot.cs
- BezierSegment.cs
- BitVector32.cs
- SHA256.cs
- EdmTypeAttribute.cs
- QilName.cs
- Buffer.cs
- Guid.cs
- Matrix.cs
- PtsContext.cs
- CodeAccessPermission.cs
- CoTaskMemUnicodeSafeHandle.cs
- NodeLabelEditEvent.cs
- FormatterServices.cs
- ConsoleKeyInfo.cs
- NetStream.cs
- TraceHandlerErrorFormatter.cs
- Brush.cs
- ObjectConverter.cs
- BitmapFrameEncode.cs
- RuleSettings.cs
- FloaterParagraph.cs
- TypeReference.cs
- CngKey.cs
- HostedElements.cs
- IgnoreSection.cs
- SelectionManager.cs
- ProxyGenerationError.cs
- ToolStripContainer.cs
- DataGridViewComboBoxColumnDesigner.cs
- SymbolType.cs
- HttpRawResponse.cs
- XpsFilter.cs
- StartUpEventArgs.cs
- SoapTypeAttribute.cs
- RelationshipType.cs
- Stopwatch.cs
- SplitterCancelEvent.cs
- RuntimeArgumentHandle.cs
- CannotUnloadAppDomainException.cs
- AdornerLayer.cs
- ToolboxItemAttribute.cs
- ConfigXmlText.cs
- NamedPermissionSet.cs
- XmlElement.cs
- invalidudtexception.cs
- XmlSerializationGeneratedCode.cs
- JournalEntry.cs
- RectAnimationUsingKeyFrames.cs
- LogRestartAreaEnumerator.cs
- ThrowHelper.cs
- FunctionDefinition.cs
- StructuredType.cs
- TableLayoutStyle.cs
- JsonEnumDataContract.cs
- ReaderWriterLock.cs
- XmlSerializerOperationBehavior.cs
- Attributes.cs
- CallContext.cs
- WindowsIPAddress.cs
- CodeNamespace.cs
- OutputCache.cs
- SafePEFileHandle.cs