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
- ADConnectionHelper.cs
- ToolStripLabel.cs
- ConnectionManagementSection.cs
- AnnotationAdorner.cs
- WorkflowInlining.cs
- ColorAnimationUsingKeyFrames.cs
- GridViewRowPresenterBase.cs
- HebrewCalendar.cs
- TagPrefixAttribute.cs
- Matrix.cs
- ImportedNamespaceContextItem.cs
- OdbcCommand.cs
- Cursor.cs
- StyleSelector.cs
- StrokeCollectionConverter.cs
- AnnotationMap.cs
- ConstantSlot.cs
- DataAdapter.cs
- DataBoundLiteralControl.cs
- WrapperEqualityComparer.cs
- TypeConverter.cs
- AtomicFile.cs
- DbConnectionPoolGroup.cs
- OracleParameter.cs
- GeometryConverter.cs
- KeysConverter.cs
- ChtmlPageAdapter.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridrowEditEndingEventArgs.cs
- CompiledXpathExpr.cs
- WorkflowRuntimeEndpoint.cs
- ProcessThreadCollection.cs
- NullableDoubleMinMaxAggregationOperator.cs
- PropertySourceInfo.cs
- SchemaCollectionPreprocessor.cs
- DATA_BLOB.cs
- HttpApplicationStateBase.cs
- SQLConvert.cs
- Message.cs
- PersonalizationAdministration.cs
- SHA1.cs
- Item.cs
- InvokePatternIdentifiers.cs
- WasAdminWrapper.cs
- WindowShowOrOpenTracker.cs
- XmlDocument.cs
- DbMetaDataCollectionNames.cs
- MimePart.cs
- WaitHandleCannotBeOpenedException.cs
- CompositeActivityDesigner.cs
- RegisteredScript.cs
- Message.cs
- HttpCacheParams.cs
- ReflectionTypeLoadException.cs
- TransformConverter.cs
- CodeParameterDeclarationExpression.cs
- LogReservationCollection.cs
- CallSite.cs
- ForeignConstraint.cs
- DelegateHelpers.Generated.cs
- Section.cs
- GlyphRun.cs
- WhitespaceRule.cs
- _Events.cs
- RegisteredArrayDeclaration.cs
- CodeCastExpression.cs
- AuthorizationSection.cs
- ExceptionTrace.cs
- StrongNameKeyPair.cs
- PeerInvitationResponse.cs
- Repeater.cs
- validation.cs
- ZipIOLocalFileHeader.cs
- BoundField.cs
- Main.cs
- ServicesExceptionNotHandledEventArgs.cs
- _UriTypeConverter.cs
- NativeMethods.cs
- Error.cs
- ProjectionPath.cs
- OverflowException.cs
- ScrollChrome.cs
- InputScopeManager.cs
- DynamicControl.cs
- AdCreatedEventArgs.cs
- Effect.cs
- HtmlAnchor.cs
- ClientData.cs
- ManipulationCompletedEventArgs.cs
- DesignerProperties.cs
- VisualTarget.cs
- BaseTransportHeaders.cs
- baseaxisquery.cs
- Rule.cs
- StandardCommands.cs
- ContentOperations.cs
- SmiContext.cs
- SqlWebEventProvider.cs
- DataTableTypeConverter.cs
- CollectionConverter.cs