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
- GeometryModel3D.cs
- HttpWriter.cs
- FontDialog.cs
- NativeDirectoryServicesQueryAPIs.cs
- RequestCachePolicy.cs
- WS2007HttpBindingElement.cs
- TemplateInstanceAttribute.cs
- WebContext.cs
- ContextProperty.cs
- FixedLineResult.cs
- FreezableCollection.cs
- ComboBoxRenderer.cs
- DrawingGroupDrawingContext.cs
- ResourceAttributes.cs
- ComponentFactoryHelpers.cs
- TransformerInfoCollection.cs
- HttpListener.cs
- EUCJPEncoding.cs
- EventPropertyMap.cs
- XmlParserContext.cs
- CheckBoxAutomationPeer.cs
- WebPartDisplayModeEventArgs.cs
- SupportingTokenDuplexChannel.cs
- TemplateInstanceAttribute.cs
- Speller.cs
- ConnectionManagementSection.cs
- _KerberosClient.cs
- ZipPackage.cs
- FrameworkContentElementAutomationPeer.cs
- CallContext.cs
- EmptyEnumerator.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- SubpageParaClient.cs
- RSAOAEPKeyExchangeDeformatter.cs
- PasswordRecoveryDesigner.cs
- ArgumentOutOfRangeException.cs
- XmlSchemaAll.cs
- HttpCookie.cs
- _HTTPDateParse.cs
- ReadOnlyCollection.cs
- AssertFilter.cs
- SubtreeProcessor.cs
- Matrix.cs
- TypefaceCollection.cs
- FrameDimension.cs
- PolyBezierSegment.cs
- TreeBuilderBamlTranslator.cs
- MethodImplAttribute.cs
- AssociationTypeEmitter.cs
- TimeSpan.cs
- FileFormatException.cs
- DiscoveryMessageSequence11.cs
- MulticastDelegate.cs
- LineGeometry.cs
- HighContrastHelper.cs
- Profiler.cs
- RowUpdatedEventArgs.cs
- log.cs
- ScrollableControl.cs
- HijriCalendar.cs
- CheckBoxStandardAdapter.cs
- PermissionSet.cs
- MatrixStack.cs
- QualifiedCellIdBoolean.cs
- MetafileHeaderWmf.cs
- XmlSchemaSet.cs
- SqlNotificationEventArgs.cs
- XmlCountingReader.cs
- Misc.cs
- LinearGradientBrush.cs
- ObjectViewEntityCollectionData.cs
- FocusWithinProperty.cs
- CompilerGlobalScopeAttribute.cs
- CodeCommentStatement.cs
- FactoryRecord.cs
- NativeMethods.cs
- OracleConnectionStringBuilder.cs
- WindowsHyperlink.cs
- WeakRefEnumerator.cs
- LexicalChunk.cs
- DataBoundLiteralControl.cs
- NativeMethodsCLR.cs
- WarningException.cs
- ToolStripItemDataObject.cs
- PingReply.cs
- RegistryPermission.cs
- ListViewGroupItemCollection.cs
- Codec.cs
- MarkedHighlightComponent.cs
- WebResourceAttribute.cs
- DispatcherTimer.cs
- RequestCacheEntry.cs
- ChineseLunisolarCalendar.cs
- EmptyTextWriter.cs
- ClientRuntimeConfig.cs
- WorkflowOperationAsyncResult.cs
- TriState.cs
- IdentityManager.cs
- ILGen.cs
- XmlSchemaAll.cs