Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / _emptywebproxy.cs / 1305376 / _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
- BindStream.cs
- ManifestResourceInfo.cs
- EntitySet.cs
- PointLightBase.cs
- SqlCommand.cs
- SHA384.cs
- RectAnimationUsingKeyFrames.cs
- SapiRecoContext.cs
- SectionRecord.cs
- SaveFileDialog.cs
- FormConverter.cs
- SystemKeyConverter.cs
- DataGridViewMethods.cs
- IndexedSelectQueryOperator.cs
- Wrapper.cs
- LineMetrics.cs
- Timer.cs
- dataobject.cs
- Pick.cs
- Renderer.cs
- ExtendedPropertyCollection.cs
- TokenizerHelper.cs
- Missing.cs
- NamespaceCollection.cs
- AuthenticationSection.cs
- Span.cs
- NotSupportedException.cs
- BinaryReader.cs
- XmlTypeAttribute.cs
- precedingsibling.cs
- ServiceHostFactory.cs
- ServicePerformanceCounters.cs
- InfoCardSymmetricAlgorithm.cs
- ApplicationFileParser.cs
- RequestCachePolicy.cs
- Evaluator.cs
- Brushes.cs
- Stroke2.cs
- TakeOrSkipWhileQueryOperator.cs
- ServiceDurableInstanceContextProvider.cs
- DataList.cs
- IndexedString.cs
- OdbcDataAdapter.cs
- XmlEventCache.cs
- UIElement.cs
- SectionUpdates.cs
- XmlUrlEditor.cs
- SolidColorBrush.cs
- GeneratedView.cs
- TreeIterators.cs
- ServiceEndpoint.cs
- DataViewListener.cs
- HtmlContainerControl.cs
- BitConverter.cs
- SiteMapSection.cs
- ProcessHostMapPath.cs
- TrackingServices.cs
- CodeGeneratorOptions.cs
- ToolboxCategoryItems.cs
- EventMappingSettingsCollection.cs
- ForwardPositionQuery.cs
- Base64Stream.cs
- StreamInfo.cs
- Pkcs7Recipient.cs
- TemplateBindingExpressionConverter.cs
- ZeroOpNode.cs
- Paragraph.cs
- ApplyImportsAction.cs
- PeerObject.cs
- TriggerAction.cs
- BitConverter.cs
- ExpressionVisitor.cs
- Subtree.cs
- Canonicalizers.cs
- PerformanceCounter.cs
- DataBindingCollection.cs
- SqlVersion.cs
- XmlUtil.cs
- ExpressionPrefixAttribute.cs
- DocumentSequence.cs
- VisualState.cs
- MetadataArtifactLoaderResource.cs
- XhtmlBasicPageAdapter.cs
- DesignerRegionMouseEventArgs.cs
- _ListenerAsyncResult.cs
- SQLUtility.cs
- ListBoxItem.cs
- TypeDescriptionProvider.cs
- ValidationEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- ModelItemDictionaryImpl.cs
- OletxVolatileEnlistment.cs
- SchemaCollectionPreprocessor.cs
- NativeRecognizer.cs
- PasswordDeriveBytes.cs
- StringAttributeCollection.cs
- ACE.cs
- DirectionalAction.cs
- CTreeGenerator.cs
- WindowsSysHeader.cs