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
- TemplateControlParser.cs
- NativeMethods.cs
- EntityDataSourceStatementEditor.cs
- ClientRoleProvider.cs
- BatchServiceHost.cs
- EncryptedPackage.cs
- PointAnimationUsingPath.cs
- WebPartDisplayModeCancelEventArgs.cs
- FileNameEditor.cs
- PageCache.cs
- FeatureManager.cs
- PerfCounters.cs
- OracleParameterBinding.cs
- Package.cs
- TransformConverter.cs
- PasswordDeriveBytes.cs
- SequentialUshortCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- DnsPermission.cs
- SweepDirectionValidation.cs
- SqlDataSourceEnumerator.cs
- DocumentOrderQuery.cs
- AffineTransform3D.cs
- UrlUtility.cs
- TransactionScope.cs
- XomlSerializationHelpers.cs
- SoapIgnoreAttribute.cs
- KeyedPriorityQueue.cs
- DesignerSerializationManager.cs
- TextTreePropertyUndoUnit.cs
- KeyGestureValueSerializer.cs
- TabletDevice.cs
- LingerOption.cs
- PolicyFactory.cs
- EntityConnectionStringBuilder.cs
- RightsManagementInformation.cs
- DesignerMetadata.cs
- RichTextBoxConstants.cs
- VirtualPath.cs
- SqlTypeSystemProvider.cs
- TileBrush.cs
- RowsCopiedEventArgs.cs
- DataGridParentRows.cs
- FormViewPageEventArgs.cs
- TextParentUndoUnit.cs
- FileDialogCustomPlacesCollection.cs
- RequestResizeEvent.cs
- Quaternion.cs
- UntrustedRecipientException.cs
- HotSpotCollection.cs
- WebPartTransformerCollection.cs
- AmbientValueAttribute.cs
- ExceptionValidationRule.cs
- WhitespaceSignificantCollectionAttribute.cs
- UiaCoreApi.cs
- DomNameTable.cs
- EditorPartChrome.cs
- SqlConnection.cs
- HwndProxyElementProvider.cs
- Int16Storage.cs
- SessionParameter.cs
- SystemIPv4InterfaceProperties.cs
- NaturalLanguageHyphenator.cs
- Style.cs
- ProvideValueServiceProvider.cs
- ControlPropertyNameConverter.cs
- MsmqIntegrationSecurityMode.cs
- XmlUtil.cs
- ListViewCancelEventArgs.cs
- InputChannel.cs
- StoreItemCollection.Loader.cs
- XamlTreeBuilderBamlRecordWriter.cs
- PolygonHotSpot.cs
- Buffer.cs
- CatalogPartChrome.cs
- Function.cs
- SelectionHighlightInfo.cs
- PointLight.cs
- RepeaterItemCollection.cs
- Version.cs
- DataGridViewCell.cs
- StrokeCollection2.cs
- Activity.cs
- TypeInitializationException.cs
- HtmlInputHidden.cs
- InkCanvasSelection.cs
- HtmlTernaryTree.cs
- Speller.cs
- Binding.cs
- CompositeFontInfo.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- CSharpCodeProvider.cs
- WorkflowOwnershipException.cs
- LabelDesigner.cs
- GorillaCodec.cs
- InstalledVoice.cs
- AsyncStreamReader.cs
- BamlRecordHelper.cs
- WebResourceAttribute.cs
- SiteMapSection.cs