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
- XamlVector3DCollectionSerializer.cs
- CodeArrayCreateExpression.cs
- XmlSchemaRedefine.cs
- MatcherBuilder.cs
- SafeLibraryHandle.cs
- XmlNavigatorStack.cs
- SHA384CryptoServiceProvider.cs
- BamlRecordReader.cs
- ReturnEventArgs.cs
- RangeValidator.cs
- UseManagedPresentationBindingElementImporter.cs
- IIS7WorkerRequest.cs
- NativeMethods.cs
- ItemDragEvent.cs
- IfJoinedCondition.cs
- FontNamesConverter.cs
- Quaternion.cs
- processwaithandle.cs
- ThicknessAnimationUsingKeyFrames.cs
- TdsParserSessionPool.cs
- SubclassTypeValidatorAttribute.cs
- ObsoleteAttribute.cs
- ComponentDispatcherThread.cs
- FullTextLine.cs
- TextHidden.cs
- MetadataWorkspace.cs
- StringValueSerializer.cs
- QilScopedVisitor.cs
- TextHidden.cs
- ObjectComplexPropertyMapping.cs
- NTAccount.cs
- RectAnimation.cs
- WrappedKeySecurityToken.cs
- DeclarativeCatalogPart.cs
- MarkedHighlightComponent.cs
- odbcmetadatacollectionnames.cs
- codemethodreferenceexpression.cs
- WorkflowQueue.cs
- ColorAnimationUsingKeyFrames.cs
- XamlToRtfParser.cs
- x509store.cs
- DataReaderContainer.cs
- LocalizableAttribute.cs
- WindowVisualStateTracker.cs
- HttpServerVarsCollection.cs
- WeakReadOnlyCollection.cs
- uribuilder.cs
- UdpSocket.cs
- DateTimeFormatInfoScanner.cs
- HttpAsyncResult.cs
- RuntimeEnvironment.cs
- PerformanceCounterLib.cs
- ConfigXmlCDataSection.cs
- EtwTrackingBehaviorElement.cs
- WeakReadOnlyCollection.cs
- AssociationType.cs
- DrawingImage.cs
- HoistedLocals.cs
- PrintPageEvent.cs
- RoleManagerModule.cs
- SqlClientWrapperSmiStreamChars.cs
- QueryOperationResponseOfT.cs
- ShapingWorkspace.cs
- WindowsStatusBar.cs
- SynchronizingStream.cs
- SystemIPInterfaceProperties.cs
- SettingsBase.cs
- GridItem.cs
- GPStream.cs
- InputLanguageEventArgs.cs
- TypeUtil.cs
- SelectorItemAutomationPeer.cs
- TabControl.cs
- XmlReflectionMember.cs
- GeometryValueSerializer.cs
- SchemaElementDecl.cs
- AnonymousIdentificationSection.cs
- ViewEventArgs.cs
- TransformGroup.cs
- ChineseLunisolarCalendar.cs
- SqlDataRecord.cs
- RadioButtonRenderer.cs
- CopyNodeSetAction.cs
- PackageRelationshipSelector.cs
- InputProcessorProfilesLoader.cs
- WebBrowserProgressChangedEventHandler.cs
- NeutralResourcesLanguageAttribute.cs
- ListSourceHelper.cs
- HtmlUtf8RawTextWriter.cs
- ProtocolElement.cs
- SpecialFolderEnumConverter.cs
- TreeWalkHelper.cs
- StringAnimationUsingKeyFrames.cs
- RadioButtonPopupAdapter.cs
- ControlPager.cs
- ExpressionPrefixAttribute.cs
- ContainerTracking.cs
- HashAlgorithm.cs
- ServiceDocument.cs
- EntityContainerAssociationSet.cs