Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataSvcMapFileSerializer.cs
- CreateParams.cs
- FlowDocumentReaderAutomationPeer.cs
- AttachedPropertyBrowsableAttribute.cs
- AccessedThroughPropertyAttribute.cs
- HealthMonitoringSection.cs
- XmlParser.cs
- FamilyTypeface.cs
- Command.cs
- Transform.cs
- SelectionProcessor.cs
- ServerIdentity.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- CqlErrorHelper.cs
- DockPattern.cs
- AggregateNode.cs
- PageSettings.cs
- FormParameter.cs
- XPathNodeHelper.cs
- UpdatePanelTrigger.cs
- WindowsToolbar.cs
- Compiler.cs
- EnumerableRowCollection.cs
- StylusPointProperties.cs
- Stacktrace.cs
- ShellProvider.cs
- IntellisenseTextBox.cs
- UdpDiscoveryEndpointProvider.cs
- InvokeMethodActivity.cs
- AssemblyBuilder.cs
- Perspective.cs
- EdmSchemaError.cs
- MetadataItemEmitter.cs
- ParentUndoUnit.cs
- SoapFault.cs
- FilterQuery.cs
- ToolStripDropTargetManager.cs
- CollectionChangedEventManager.cs
- MailWebEventProvider.cs
- KnownTypesHelper.cs
- BuildResult.cs
- TextEndOfParagraph.cs
- CollectionViewGroupInternal.cs
- FlowLayoutPanelDesigner.cs
- CanExecuteRoutedEventArgs.cs
- CompilerResults.cs
- SequentialOutput.cs
- FileLogRecord.cs
- DocumentXmlWriter.cs
- FunctionCommandText.cs
- Utils.cs
- SQLInt64Storage.cs
- DataPagerCommandEventArgs.cs
- DependencyObjectProvider.cs
- InternalResources.cs
- ModelUIElement3D.cs
- PagerSettings.cs
- WebControlAdapter.cs
- WizardForm.cs
- CodeDelegateInvokeExpression.cs
- TerminatorSinks.cs
- OleServicesContext.cs
- BrowserInteropHelper.cs
- ClientBuildManagerCallback.cs
- FileVersion.cs
- OleDbError.cs
- ControlParameter.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- UnauthorizedAccessException.cs
- TypeListConverter.cs
- FunctionMappingTranslator.cs
- AuthenticatedStream.cs
- RowsCopiedEventArgs.cs
- TypeInitializationException.cs
- WizardStepBase.cs
- RtfControls.cs
- DBCSCodePageEncoding.cs
- EdmComplexTypeAttribute.cs
- AutoGeneratedField.cs
- Logging.cs
- TreeChangeInfo.cs
- WebPartCatalogAddVerb.cs
- InputScopeConverter.cs
- HtmlElementEventArgs.cs
- CellQuery.cs
- IdentityReference.cs
- MgmtConfigurationRecord.cs
- BaseDataBoundControl.cs
- CodeTypeConstructor.cs
- HostDesigntimeLicenseContext.cs
- CodeExpressionCollection.cs
- ToolStripContainer.cs
- ClientTargetSection.cs
- ClassHandlersStore.cs
- Polyline.cs
- ProtocolsConfiguration.cs
- CompilationUtil.cs
- JsonObjectDataContract.cs
- AnimationException.cs
- AppDomainProtocolHandler.cs