Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BlurBitmapEffect.cs
- EncryptedType.cs
- DiagnosticsConfigurationHandler.cs
- TrackingStringDictionary.cs
- ControlTemplate.cs
- GenericRootAutomationPeer.cs
- ImmutableObjectAttribute.cs
- Logging.cs
- CfgRule.cs
- SafeHandles.cs
- StringCollectionMarkupSerializer.cs
- WebPartCollection.cs
- CompareInfo.cs
- LinearGradientBrush.cs
- Point3DAnimationBase.cs
- CornerRadius.cs
- SqlParameterCollection.cs
- SingleAnimationUsingKeyFrames.cs
- ServiceBusyException.cs
- XmlSchemaObjectCollection.cs
- SiteMapPathDesigner.cs
- AssemblyNameProxy.cs
- TdsParserStateObject.cs
- HttpCachePolicyWrapper.cs
- Image.cs
- Brush.cs
- RealizationContext.cs
- BoolLiteral.cs
- RegexReplacement.cs
- HelloMessageCD1.cs
- webeventbuffer.cs
- ApplicationCommands.cs
- DataMisalignedException.cs
- QuestionEventArgs.cs
- PipeSecurity.cs
- baseshape.cs
- CleanUpVirtualizedItemEventArgs.cs
- UriTemplatePathSegment.cs
- SortedList.cs
- DataGridViewRow.cs
- AnyReturnReader.cs
- RotateTransform.cs
- NextPreviousPagerField.cs
- ListContractAdapter.cs
- CounterSampleCalculator.cs
- ControlIdConverter.cs
- BasicBrowserDialog.cs
- Brush.cs
- QilExpression.cs
- SpeechEvent.cs
- ResourcePermissionBase.cs
- DebugView.cs
- SamlAuthenticationStatement.cs
- TextAutomationPeer.cs
- CopyOnWriteList.cs
- GeneralTransform2DTo3D.cs
- DynamicRenderer.cs
- MenuStrip.cs
- ZipPackagePart.cs
- ReliableInputConnection.cs
- SecureStringHasher.cs
- CodeCompileUnit.cs
- ReachUIElementCollectionSerializer.cs
- WorkingDirectoryEditor.cs
- AtomicFile.cs
- BindingList.cs
- XmlSerializerFactory.cs
- TaskForm.cs
- PagesSection.cs
- XPathDocumentBuilder.cs
- ThreadInterruptedException.cs
- OdbcParameterCollection.cs
- PathParser.cs
- DesignerVerb.cs
- PagesSection.cs
- FieldToken.cs
- DiagnosticTrace.cs
- RawKeyboardInputReport.cs
- XmlEncoding.cs
- HttpCookie.cs
- Normalization.cs
- panel.cs
- TypeDescriptor.cs
- WebResponse.cs
- objectquery_tresulttype.cs
- MediaScriptCommandRoutedEventArgs.cs
- EventPropertyMap.cs
- DrawingContextDrawingContextWalker.cs
- MsdtcWrapper.cs
- PageCache.cs
- TargetConverter.cs
- SystemFonts.cs
- StyleReferenceConverter.cs
- Button.cs
- EventNotify.cs
- RenameRuleObjectDialog.Designer.cs
- ProcessHostConfigUtils.cs
- RotateTransform3D.cs
- DispatchRuntime.cs
- BaseAddressElementCollection.cs