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
- XPathNodeIterator.cs
- SurrogateChar.cs
- CompareInfo.cs
- LinqDataSourceContextEventArgs.cs
- UrlPath.cs
- DataGridViewColumnConverter.cs
- Pen.cs
- BasicCellRelation.cs
- FileStream.cs
- LoadGrammarCompletedEventArgs.cs
- RemotingException.cs
- ManagementClass.cs
- FacetValues.cs
- PropertyPushdownHelper.cs
- IndentTextWriter.cs
- SectionVisual.cs
- HostProtectionPermission.cs
- SortDescriptionCollection.cs
- BamlResourceDeserializer.cs
- _CacheStreams.cs
- XXXOnTypeBuilderInstantiation.cs
- COAUTHINFO.cs
- WebControlAdapter.cs
- SQLInt16.cs
- FontWeightConverter.cs
- PeerNameRecordCollection.cs
- HandlerFactoryWrapper.cs
- FilterElement.cs
- BamlReader.cs
- XmlNullResolver.cs
- MessageDecoder.cs
- TableCell.cs
- HuffCodec.cs
- NumericUpDownAcceleration.cs
- EntryWrittenEventArgs.cs
- RotationValidation.cs
- ScrollItemProviderWrapper.cs
- DataControlButton.cs
- PeerValidationBehavior.cs
- ButtonBase.cs
- Clipboard.cs
- ComboBoxHelper.cs
- SizeValueSerializer.cs
- NumericExpr.cs
- sqlnorm.cs
- SecurityManager.cs
- EndpointNotFoundException.cs
- VisualBrush.cs
- ValidationSettings.cs
- ActiveXSite.cs
- EncryptedType.cs
- SymbolEqualComparer.cs
- Rectangle.cs
- CatchDesigner.xaml.cs
- System.Data.OracleClient_BID.cs
- DataControlImageButton.cs
- WebHeaderCollection.cs
- XmlReturnReader.cs
- FileDialog.cs
- ResourcePart.cs
- LastQueryOperator.cs
- XamlFigureLengthSerializer.cs
- StrokeNodeOperations2.cs
- AddingNewEventArgs.cs
- ServiceModelSecurityTokenRequirement.cs
- FrameworkRichTextComposition.cs
- DesignerWebPartChrome.cs
- BlurBitmapEffect.cs
- UTF32Encoding.cs
- ColorTranslator.cs
- RootAction.cs
- UIElementHelper.cs
- SqlPersonalizationProvider.cs
- AssemblyBuilderData.cs
- ResolvedKeyFrameEntry.cs
- DocumentPaginator.cs
- ReachFixedPageSerializerAsync.cs
- Lease.cs
- CustomErrorsSection.cs
- SqlServer2KCompatibilityAnnotation.cs
- ObjectNotFoundException.cs
- ScriptComponentDescriptor.cs
- Number.cs
- MsmqDecodeHelper.cs
- FormsAuthenticationModule.cs
- ArrayElementGridEntry.cs
- CriticalExceptions.cs
- TrackBarRenderer.cs
- FlowDecisionDesigner.xaml.cs
- _LoggingObject.cs
- AspNetHostingPermission.cs
- ConditionalBranch.cs
- PreservationFileWriter.cs
- DocumentPageHost.cs
- RectAnimationBase.cs
- XmlExpressionDumper.cs
- XPathNavigatorKeyComparer.cs
- SessionEndingEventArgs.cs
- SqlCacheDependencyDatabase.cs
- TabItemAutomationPeer.cs