Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- unsafenativemethodsother.cs
- Inflater.cs
- BaseDataListActionList.cs
- SamlAuthenticationClaimResource.cs
- TdsParameterSetter.cs
- NonVisualControlAttribute.cs
- WindowsImpersonationContext.cs
- PrePostDescendentsWalker.cs
- ByteAnimationBase.cs
- BuildResult.cs
- Html32TextWriter.cs
- Drawing.cs
- Set.cs
- ProcessHostFactoryHelper.cs
- Bitmap.cs
- PageContent.cs
- ZipArchive.cs
- TemplateAction.cs
- BounceEase.cs
- FixedSOMTable.cs
- SessionStateItemCollection.cs
- SHA1Managed.cs
- XmlComplianceUtil.cs
- securitymgrsite.cs
- NameValueSectionHandler.cs
- DesignerAttribute.cs
- MulticastDelegate.cs
- Rotation3D.cs
- BasicViewGenerator.cs
- FontFamilyIdentifier.cs
- SymLanguageType.cs
- ItemsControl.cs
- FolderBrowserDialog.cs
- RequestChannelBinder.cs
- TrustManagerPromptUI.cs
- FileInfo.cs
- ComboBox.cs
- XPathSingletonIterator.cs
- AdPostCacheSubstitution.cs
- HttpException.cs
- cookieexception.cs
- LabelLiteral.cs
- StringWriter.cs
- IPipelineRuntime.cs
- XpsDigitalSignature.cs
- LinkClickEvent.cs
- DesignerExtenders.cs
- IncrementalCompileAnalyzer.cs
- KerberosRequestorSecurityToken.cs
- ListViewPagedDataSource.cs
- ListViewHitTestInfo.cs
- PresentationSource.cs
- ListenerUnsafeNativeMethods.cs
- ToolboxItemFilterAttribute.cs
- EditorAttribute.cs
- ByteRangeDownloader.cs
- PreProcessor.cs
- SelectedDatesCollection.cs
- GuidConverter.cs
- PropertyEmitter.cs
- RemotingServices.cs
- EntityDataSourceColumn.cs
- Wizard.cs
- GetCryptoTransformRequest.cs
- SQLBytesStorage.cs
- SystemFonts.cs
- MasterPageBuildProvider.cs
- X509Utils.cs
- EllipticalNodeOperations.cs
- BackStopAuthenticationModule.cs
- FieldNameLookup.cs
- PeerResolverSettings.cs
- DataSourceCacheDurationConverter.cs
- ServiceModelActivity.cs
- StylusEventArgs.cs
- TagMapInfo.cs
- StringUtil.cs
- CodeExpressionStatement.cs
- StylusPointProperty.cs
- RuntimeHandles.cs
- CopyCodeAction.cs
- RemoteWebConfigurationHost.cs
- LinearGradientBrush.cs
- GridItemPattern.cs
- TypeNameConverter.cs
- OperationContractGenerationContext.cs
- TextEndOfSegment.cs
- SendSecurityHeader.cs
- RoleService.cs
- MimeTypePropertyAttribute.cs
- ClockController.cs
- MeasureItemEvent.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- QuarticEase.cs
- DataServiceResponse.cs
- RunWorkerCompletedEventArgs.cs
- HandleExceptionArgs.cs
- QueueSurrogate.cs
- PointCollection.cs
- URLMembershipCondition.cs