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
- ClientBuildManagerCallback.cs
- WrappedIUnknown.cs
- GroupBoxRenderer.cs
- HwndHost.cs
- DataSpaceManager.cs
- _SpnDictionary.cs
- Duration.cs
- IODescriptionAttribute.cs
- TemplateParser.cs
- Axis.cs
- PaintValueEventArgs.cs
- ResourceProviderFactory.cs
- GeneralTransform3D.cs
- BinaryObjectReader.cs
- ReadOnlyObservableCollection.cs
- DirectionalLight.cs
- util.cs
- FontCollection.cs
- FontWeight.cs
- SkipQueryOptionExpression.cs
- Viewport2DVisual3D.cs
- TextBoxAutomationPeer.cs
- StretchValidation.cs
- UserValidatedEventArgs.cs
- IOThreadScheduler.cs
- FaultBookmark.cs
- SettingsPropertyNotFoundException.cs
- String.cs
- BindToObject.cs
- ImageFormatConverter.cs
- SiteMapPath.cs
- TextSearch.cs
- NetworkInformationException.cs
- Propagator.cs
- EventData.cs
- XamlSerializerUtil.cs
- ToolStripDropTargetManager.cs
- PasswordBox.cs
- LiteralControl.cs
- DocumentViewerConstants.cs
- ExtendedPropertyDescriptor.cs
- FileEnumerator.cs
- EntityDataSourceChangingEventArgs.cs
- ObjectToIdCache.cs
- EtwTrackingBehaviorElement.cs
- DataObjectEventArgs.cs
- GACMembershipCondition.cs
- Privilege.cs
- TdsEnums.cs
- CollectionViewSource.cs
- PointConverter.cs
- _AutoWebProxyScriptEngine.cs
- Serializer.cs
- OleDbParameterCollection.cs
- DbModificationCommandTree.cs
- ContextMenuService.cs
- InOutArgumentConverter.cs
- CurrentTimeZone.cs
- EntityDataSourceColumn.cs
- SerializationStore.cs
- ProviderConnectionPoint.cs
- Sequence.cs
- PersonalizationProviderHelper.cs
- MemberMaps.cs
- BinaryMethodMessage.cs
- SecurityPermission.cs
- HttpWebResponse.cs
- CustomServiceCredentials.cs
- WindowProviderWrapper.cs
- XmlNodeComparer.cs
- CaseStatement.cs
- BlurEffect.cs
- TextFragmentEngine.cs
- EffectiveValueEntry.cs
- JoinCqlBlock.cs
- PenLineCapValidation.cs
- ExcludeFromCodeCoverageAttribute.cs
- BulletDecorator.cs
- NullExtension.cs
- DataPagerFieldItem.cs
- FormsAuthenticationUserCollection.cs
- Composition.cs
- streamingZipPartStream.cs
- XmlNamespaceManager.cs
- PresentationUIStyleResources.cs
- MenuDesigner.cs
- HttpProfileGroupBase.cs
- DriveNotFoundException.cs
- MaskedTextBoxTextEditorDropDown.cs
- TextSearch.cs
- ScriptReferenceEventArgs.cs
- LocalizableResourceBuilder.cs
- FloaterBaseParagraph.cs
- MethodBuilderInstantiation.cs
- TextFormatterHost.cs
- DrawingDrawingContext.cs
- RecognizerStateChangedEventArgs.cs
- UIAgentRequest.cs
- Component.cs
- PerfCounters.cs