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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataTableReaderListener.cs
- XmlDocumentType.cs
- CodeArgumentReferenceExpression.cs
- ConfigXmlCDataSection.cs
- _ConnectStream.cs
- _OSSOCK.cs
- Query.cs
- SemaphoreFullException.cs
- FixedSOMFixedBlock.cs
- DataGridViewCheckBoxCell.cs
- ControlDesigner.cs
- FixedSOMTextRun.cs
- ContentElementAutomationPeer.cs
- Bitmap.cs
- PropertyPathConverter.cs
- Int32Storage.cs
- KeyEvent.cs
- RegistryConfigurationProvider.cs
- TreeNode.cs
- CompositionCommandSet.cs
- HtmlElementErrorEventArgs.cs
- RequestQueryProcessor.cs
- SynchronizingStream.cs
- EventPrivateKey.cs
- TextEditorContextMenu.cs
- TypeTypeConverter.cs
- CodeTypeConstructor.cs
- OperatingSystem.cs
- SqlExpressionNullability.cs
- SelectedDatesCollection.cs
- WinCategoryAttribute.cs
- SQLMoneyStorage.cs
- Border.cs
- RulePatternOps.cs
- LayeredChannelFactory.cs
- SQLInt64Storage.cs
- ListItem.cs
- ConstNode.cs
- FunctionUpdateCommand.cs
- GridView.cs
- DependencyPropertyChangedEventArgs.cs
- OleDbRowUpdatedEvent.cs
- KeyInterop.cs
- LocalsItemDescription.cs
- DefaultSection.cs
- WindowsFormsHost.cs
- Funcletizer.cs
- XmlSchemaException.cs
- SegmentInfo.cs
- SerialPinChanges.cs
- ContextMenu.cs
- Logging.cs
- QilInvokeLateBound.cs
- TransactionBridge.cs
- ExpandableObjectConverter.cs
- SafeSecurityHelper.cs
- RelativeSource.cs
- Interfaces.cs
- MinimizableAttributeTypeConverter.cs
- WindowsGraphicsWrapper.cs
- EnvelopeVersion.cs
- HyperlinkAutomationPeer.cs
- ContractUtils.cs
- DataControlCommands.cs
- DeflateInput.cs
- LookupBindingPropertiesAttribute.cs
- ValidationSummary.cs
- IMembershipProvider.cs
- UpdateProgress.cs
- ExpressionsCollectionConverter.cs
- WhitespaceSignificantCollectionAttribute.cs
- KeysConverter.cs
- ParamArrayAttribute.cs
- HandlerBase.cs
- ComponentEvent.cs
- BooleanSwitch.cs
- InkCanvasFeedbackAdorner.cs
- TransformConverter.cs
- ClientRoleProvider.cs
- TemplatedMailWebEventProvider.cs
- AddInBase.cs
- cookieexception.cs
- SmiGettersStream.cs
- WebPartDescription.cs
- StylusPointDescription.cs
- SqlColumnizer.cs
- StatusBarPanelClickEvent.cs
- RequestUriProcessor.cs
- EmptyReadOnlyDictionaryInternal.cs
- errorpatternmatcher.cs
- Exceptions.cs
- FileDetails.cs
- _ProxyChain.cs
- ByteStreamGeometryContext.cs
- CompilerCollection.cs
- ValidationEventArgs.cs
- DockPanel.cs
- NumericUpDownAccelerationCollection.cs
- OleDbStruct.cs
- UIElementIsland.cs