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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapEffectState.cs
- MbpInfo.cs
- DelegateHelpers.cs
- ProcessManager.cs
- SapiInterop.cs
- CapiSafeHandles.cs
- FileLogRecordEnumerator.cs
- FontCacheLogic.cs
- DataGridComboBoxColumn.cs
- DbConnectionPoolOptions.cs
- HMAC.cs
- HopperCache.cs
- ReadOnlyDataSource.cs
- Function.cs
- JsonUriDataContract.cs
- LockedActivityGlyph.cs
- WebSysDescriptionAttribute.cs
- HMACRIPEMD160.cs
- BindingElementExtensionElement.cs
- SettingsPropertyNotFoundException.cs
- WebPartUtil.cs
- Visual3D.cs
- ConversionContext.cs
- Internal.cs
- NotifyParentPropertyAttribute.cs
- TextSearch.cs
- Slider.cs
- ServicePointManagerElement.cs
- XPathDocumentIterator.cs
- DeclaredTypeValidatorAttribute.cs
- odbcmetadatafactory.cs
- DataTableClearEvent.cs
- GlyphRunDrawing.cs
- HtmlTableCell.cs
- FlowDecisionLabelFeature.cs
- GridLength.cs
- Mutex.cs
- SystemBrushes.cs
- httpapplicationstate.cs
- SerialErrors.cs
- PointLight.cs
- ModelVisual3D.cs
- ConfigurationManagerInternalFactory.cs
- UnknownBitmapDecoder.cs
- SmiEventSink_DeferedProcessing.cs
- DateTimeStorage.cs
- TypeSystemProvider.cs
- IfAction.cs
- AncestorChangedEventArgs.cs
- GC.cs
- GetReadStreamResult.cs
- AuthenticationConfig.cs
- XsltArgumentList.cs
- DesignerWidgets.cs
- FileLogRecordStream.cs
- CompareInfo.cs
- ReferenceService.cs
- Application.cs
- ZipIOModeEnforcingStream.cs
- ReceiveContext.cs
- SystemNetHelpers.cs
- XamlUtilities.cs
- MouseGesture.cs
- MaterialCollection.cs
- ObjectStateManager.cs
- Int16Animation.cs
- XsdValidatingReader.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- EntityContainerEmitter.cs
- ManagedFilter.cs
- Constants.cs
- QueryExpression.cs
- ClientConfigPaths.cs
- MailWriter.cs
- XmlArrayAttribute.cs
- ListViewItem.cs
- DataGridPageChangedEventArgs.cs
- EventMappingSettings.cs
- Attributes.cs
- TextEditorSpelling.cs
- NullableFloatAverageAggregationOperator.cs
- ObjectSecurity.cs
- SchemaElementDecl.cs
- TextElementEditingBehaviorAttribute.cs
- FormatConvertedBitmap.cs
- EditorPartChrome.cs
- IUnknownConstantAttribute.cs
- XmlSerializationGeneratedCode.cs
- DataSvcMapFileSerializer.cs
- ALinqExpressionVisitor.cs
- System.Data_BID.cs
- VisualStyleTypesAndProperties.cs
- DomNameTable.cs
- CalendarDesigner.cs
- ConfigXmlWhitespace.cs
- CodeDirectoryCompiler.cs
- Menu.cs
- MediaTimeline.cs
- DataBindEngine.cs
- SharedConnectionInfo.cs