Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Html32TextWriter.cs
- ZipIOExtraFieldZip64Element.cs
- XmlValueConverter.cs
- KnownColorTable.cs
- DataGridViewRowPostPaintEventArgs.cs
- CqlBlock.cs
- StagingAreaInputItem.cs
- _Events.cs
- LocalValueEnumerator.cs
- EdmFunctionAttribute.cs
- SqlSupersetValidator.cs
- XamlFxTrace.cs
- isolationinterop.cs
- XmlObjectSerializerWriteContext.cs
- ScaleTransform.cs
- GatewayIPAddressInformationCollection.cs
- VectorAnimationBase.cs
- CounterSampleCalculator.cs
- HostedAspNetEnvironment.cs
- Metafile.cs
- AppDomainAttributes.cs
- DeclarativeExpressionConditionDeclaration.cs
- TopClause.cs
- Exception.cs
- HWStack.cs
- StrokeCollection2.cs
- CompilerResults.cs
- SharedConnectionInfo.cs
- EntityContainerRelationshipSet.cs
- AutomationElementCollection.cs
- HijriCalendar.cs
- DataGridHyperlinkColumn.cs
- XmlSchemaExternal.cs
- HttpApplicationFactory.cs
- CreateUserWizardDesigner.cs
- OdbcConnectionHandle.cs
- Handle.cs
- DbSetClause.cs
- HwndHost.cs
- TextElementEnumerator.cs
- DataGridViewToolTip.cs
- ValidationErrorCollection.cs
- TimelineGroup.cs
- SchemaImporter.cs
- LateBoundChannelParameterCollection.cs
- XmlAtomicValue.cs
- Solver.cs
- DocumentManager.cs
- ListControlDataBindingHandler.cs
- embossbitmapeffect.cs
- LocatorGroup.cs
- XPathBinder.cs
- ResourceWriter.cs
- Geometry.cs
- FastPropertyAccessor.cs
- PageParser.cs
- WebPartPersonalization.cs
- PenThreadPool.cs
- AssociationSetMetadata.cs
- SqlNotificationRequest.cs
- SafeHandles.cs
- XmlUrlEditor.cs
- RbTree.cs
- SBCSCodePageEncoding.cs
- SamlAuthenticationStatement.cs
- ScriptDescriptor.cs
- CustomCategoryAttribute.cs
- GB18030Encoding.cs
- PlainXmlWriter.cs
- Exceptions.cs
- ColorContext.cs
- ServiceModelStringsVersion1.cs
- ClientScriptItem.cs
- HttpDictionary.cs
- X509IssuerSerialKeyIdentifierClause.cs
- XamlBrushSerializer.cs
- ExpressionLink.cs
- FragmentNavigationEventArgs.cs
- ControlTemplate.cs
- WindowsStartMenu.cs
- XmlValidatingReaderImpl.cs
- IIS7UserPrincipal.cs
- OleDbWrapper.cs
- ProfileSettingsCollection.cs
- EntityContainerRelationshipSetEnd.cs
- ConnectionPointCookie.cs
- HtmlTernaryTree.cs
- NativeMethodsCLR.cs
- GridViewUpdatedEventArgs.cs
- X509Certificate2.cs
- OperationCanceledException.cs
- ShimAsPublicXamlType.cs
- SHA1CryptoServiceProvider.cs
- UInt32Storage.cs
- ListView.cs
- DatagridviewDisplayedBandsData.cs
- RegionIterator.cs
- ObjectListFieldsPage.cs
- TypePropertyEditor.cs
- XamlTreeBuilderBamlRecordWriter.cs