Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AppearanceEditorPart.cs
- CLSCompliantAttribute.cs
- DeflateStream.cs
- InProcStateClientManager.cs
- DecimalConstantAttribute.cs
- FileIOPermission.cs
- MimeWriter.cs
- TextTreeObjectNode.cs
- BooleanAnimationBase.cs
- WizardPanel.cs
- PlainXmlWriter.cs
- shaperfactoryquerycacheentry.cs
- ReadOnlyAttribute.cs
- LinearKeyFrames.cs
- Graphics.cs
- CodeSnippetCompileUnit.cs
- MultiSelectRootGridEntry.cs
- HtmlTextBoxAdapter.cs
- SQLInt64.cs
- _UncName.cs
- ToolStripDropDownMenu.cs
- EventProxy.cs
- AppDomainProtocolHandler.cs
- ISFTagAndGuidCache.cs
- TouchesCapturedWithinProperty.cs
- CodeEntryPointMethod.cs
- ContentIterators.cs
- RangeContentEnumerator.cs
- Expression.cs
- InstanceNotReadyException.cs
- HttpCapabilitiesSectionHandler.cs
- GridItemProviderWrapper.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SingleAnimation.cs
- Switch.cs
- DebugView.cs
- TransformerInfoCollection.cs
- DataRelationPropertyDescriptor.cs
- ExpressionTextBox.xaml.cs
- LoginCancelEventArgs.cs
- IndexerNameAttribute.cs
- XmlIgnoreAttribute.cs
- TemplateEditingService.cs
- Journaling.cs
- TableItemStyle.cs
- RectangleGeometry.cs
- DataGridViewImageColumn.cs
- SystemSounds.cs
- Converter.cs
- MetadataArtifactLoaderCompositeResource.cs
- ModelVisual3D.cs
- ToolStripContainer.cs
- PassportAuthentication.cs
- CfgArc.cs
- WinEventWrap.cs
- ConfigurationSettings.cs
- ChangePassword.cs
- SecurityToken.cs
- UpdateManifestForBrowserApplication.cs
- AssociationEndMember.cs
- DesignParameter.cs
- TransformProviderWrapper.cs
- AdvancedBindingPropertyDescriptor.cs
- TableLayout.cs
- KeyGestureValueSerializer.cs
- SqlError.cs
- InputBinding.cs
- DataGridViewCellStyleBuilderDialog.cs
- DataSourceComponent.cs
- securitycriticaldataClass.cs
- RecordsAffectedEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- SystemBrushes.cs
- OleDbDataReader.cs
- ControlIdConverter.cs
- DiscoveryReferences.cs
- EntityParameter.cs
- CheckBoxList.cs
- PropertyMappingExceptionEventArgs.cs
- GeometryHitTestResult.cs
- CodeAssignStatement.cs
- RequestChannel.cs
- QualifiedCellIdBoolean.cs
- WebPartVerb.cs
- NativeWindow.cs
- CloseSequenceResponse.cs
- SqlCommandSet.cs
- ResetableIterator.cs
- HttpMethodConstraint.cs
- XmlDeclaration.cs
- SqlRetyper.cs
- RequiredAttributeAttribute.cs
- RangeContentEnumerator.cs
- InputLanguageManager.cs
- SamlConditions.cs
- SecurityCriticalDataForSet.cs
- XmlSchemaChoice.cs
- Cursors.cs
- ViewStateException.cs
- EqualityComparer.cs