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
- Int16AnimationBase.cs
- XmlDataDocument.cs
- JsonCollectionDataContract.cs
- ComplusTypeValidator.cs
- LinqDataSourceView.cs
- BamlTreeMap.cs
- RichTextBox.cs
- DataGridViewButtonCell.cs
- StringDictionary.cs
- AttributeQuery.cs
- MaterialGroup.cs
- HMACSHA256.cs
- PropertyRecord.cs
- StylusCollection.cs
- IncrementalReadDecoders.cs
- TableItemPattern.cs
- XmlSubtreeReader.cs
- ErrorWrapper.cs
- ToolTipAutomationPeer.cs
- SqlDataSourceStatusEventArgs.cs
- AlternateViewCollection.cs
- JpegBitmapEncoder.cs
- TableLayoutPanelCellPosition.cs
- SizeAnimationUsingKeyFrames.cs
- InstanceCreationEditor.cs
- BitArray.cs
- NativeBuffer.cs
- HttpCapabilitiesBase.cs
- OleStrCAMarshaler.cs
- OrderByLifter.cs
- DataServiceClientException.cs
- WinCategoryAttribute.cs
- DeadCharTextComposition.cs
- ReflectionHelper.cs
- HttpListenerRequestUriBuilder.cs
- PropertyPathWorker.cs
- CodeGenerator.cs
- ObjectPersistData.cs
- SmiMetaDataProperty.cs
- Claim.cs
- QilSortKey.cs
- StaticSiteMapProvider.cs
- sqlser.cs
- PopOutPanel.cs
- MediaTimeline.cs
- ToolStripDropDownItem.cs
- CompilerParameters.cs
- PTUtility.cs
- BulletedListEventArgs.cs
- HttpRawResponse.cs
- CodeDelegateInvokeExpression.cs
- ToolStripControlHost.cs
- IndentTextWriter.cs
- CallbackValidator.cs
- FixedDocumentSequencePaginator.cs
- OperationCanceledException.cs
- DesignerActionService.cs
- DSASignatureDeformatter.cs
- LocalizationParserHooks.cs
- PermissionRequestEvidence.cs
- UrlAuthFailedErrorFormatter.cs
- ResourcesChangeInfo.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- FrameAutomationPeer.cs
- PackageStore.cs
- DeclaredTypeValidatorAttribute.cs
- AdornerPresentationContext.cs
- SafeUserTokenHandle.cs
- InputScopeManager.cs
- ManualResetEvent.cs
- XmlUnspecifiedAttribute.cs
- Emitter.cs
- EasingFunctionBase.cs
- RowParagraph.cs
- DodSequenceMerge.cs
- ReaderWriterLock.cs
- XmlValidatingReaderImpl.cs
- XmlSchemaCollection.cs
- XmlDataSourceNodeDescriptor.cs
- SmiEventSink_DeferedProcessing.cs
- CompilationLock.cs
- PropertyNames.cs
- PointConverter.cs
- ArcSegment.cs
- PeerResolverSettings.cs
- FormatSelectingMessageInspector.cs
- WebBrowserEvent.cs
- StandardToolWindows.cs
- XmlRawWriterWrapper.cs
- DocumentXmlWriter.cs
- LicenseContext.cs
- Int32KeyFrameCollection.cs
- BaseCAMarshaler.cs
- MLangCodePageEncoding.cs
- StringAnimationUsingKeyFrames.cs
- TrackingParticipant.cs
- FormsAuthenticationEventArgs.cs
- XhtmlBasicLabelAdapter.cs
- DocumentEventArgs.cs
- HtmlTable.cs