Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleType.cs
- NameTable.cs
- SoapProcessingBehavior.cs
- ProfilePropertySettingsCollection.cs
- SizeAnimationClockResource.cs
- GetRecipientRequest.cs
- ToolStripRenderEventArgs.cs
- XpsS0ValidatingLoader.cs
- HtmlInputButton.cs
- XamlDebuggerXmlReader.cs
- BinaryConverter.cs
- DrawingImage.cs
- SessionPageStateSection.cs
- CompositeDataBoundControl.cs
- HwndProxyElementProvider.cs
- CapiNative.cs
- PaintEvent.cs
- __Filters.cs
- DetailsView.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- FontStretchConverter.cs
- WebPartMenu.cs
- CheckPair.cs
- PropertyCollection.cs
- SessionIDManager.cs
- WindowInteropHelper.cs
- EventBuilder.cs
- SimpleHandlerFactory.cs
- QilDataSource.cs
- WeakEventTable.cs
- ReflectPropertyDescriptor.cs
- AllMembershipCondition.cs
- HtmlElementCollection.cs
- XamlStream.cs
- VisualTarget.cs
- BaseResourcesBuildProvider.cs
- TemplateBindingExpressionConverter.cs
- JsonXmlDataContract.cs
- ButtonPopupAdapter.cs
- XamlReaderHelper.cs
- ChunkedMemoryStream.cs
- X509KeyIdentifierClauseType.cs
- ApplicationSecurityInfo.cs
- ConstraintEnumerator.cs
- RelationalExpressions.cs
- SkinIDTypeConverter.cs
- SoapIncludeAttribute.cs
- shaper.cs
- ByteAnimation.cs
- RemoteHelper.cs
- SqlDataSourceStatusEventArgs.cs
- NonBatchDirectoryCompiler.cs
- FixedDocument.cs
- ParallelActivityDesigner.cs
- XmlSerializerVersionAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- NegotiationTokenProvider.cs
- XmlName.cs
- PageFunction.cs
- NavigationPropertySingletonExpression.cs
- UIntPtr.cs
- QilTargetType.cs
- SqlConnectionManager.cs
- MarshalByValueComponent.cs
- ProvidePropertyAttribute.cs
- HttpWriter.cs
- StatusBarDrawItemEvent.cs
- IChannel.cs
- LinqDataSourceHelper.cs
- ListItemCollection.cs
- DataServiceQuery.cs
- TextWriterEngine.cs
- ModuleBuilderData.cs
- SpellerError.cs
- PeerName.cs
- XmlSchemaValidationException.cs
- UdpChannelListener.cs
- ControlBuilderAttribute.cs
- CompiledAction.cs
- HtmlInputReset.cs
- AQNBuilder.cs
- DeferredTextReference.cs
- GridViewRowEventArgs.cs
- DesignerTransaction.cs
- SqlPersonalizationProvider.cs
- CollectionTypeElement.cs
- SqlDataSourceView.cs
- XmlWriterTraceListener.cs
- SafeLocalMemHandle.cs
- SequenceDesigner.cs
- OleDbEnumerator.cs
- NativeCppClassAttribute.cs
- SecurityKeyEntropyMode.cs
- WebPartTransformerAttribute.cs
- GiveFeedbackEvent.cs
- HttpListener.cs
- ArrayList.cs
- WebPartMovingEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- RC2CryptoServiceProvider.cs