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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatrixAnimationUsingKeyFrames.cs
- ReversePositionQuery.cs
- JobStaple.cs
- DoubleCollectionConverter.cs
- WebHostedComPlusServiceHost.cs
- StringUtil.cs
- LogicalTreeHelper.cs
- TreeViewImageKeyConverter.cs
- StatusBarItemAutomationPeer.cs
- Effect.cs
- QilInvokeLateBound.cs
- KeyedCollection.cs
- TransformDescriptor.cs
- FatalException.cs
- ReadWriteSpinLock.cs
- DependentTransaction.cs
- Pts.cs
- unsafenativemethodsother.cs
- webclient.cs
- XmlMapping.cs
- FixedSOMPageElement.cs
- MetadataArtifactLoaderResource.cs
- DbConnectionStringCommon.cs
- PropertyDescriptorComparer.cs
- ResourceExpressionEditor.cs
- DesignTable.cs
- TemplatedWizardStep.cs
- SafeEventHandle.cs
- SortExpressionBuilder.cs
- UrlPath.cs
- CodeTryCatchFinallyStatement.cs
- AutomationPattern.cs
- PropertyPathWorker.cs
- EntityDataSourceContainerNameConverter.cs
- MasterPageParser.cs
- sqlser.cs
- MapPathBasedVirtualPathProvider.cs
- InputLanguageProfileNotifySink.cs
- PeerNameRecord.cs
- IfJoinedCondition.cs
- DbProviderSpecificTypePropertyAttribute.cs
- WebConfigurationHost.cs
- OleDbEnumerator.cs
- EnumBuilder.cs
- SecurityKeyType.cs
- PathFigureCollectionConverter.cs
- SplineQuaternionKeyFrame.cs
- AnnotationAuthorChangedEventArgs.cs
- COM2IPerPropertyBrowsingHandler.cs
- XmlSchemaSimpleTypeUnion.cs
- LocalIdKeyIdentifierClause.cs
- IisTraceWebEventProvider.cs
- DataBindingValueUIHandler.cs
- SafePointer.cs
- ConfigurationStrings.cs
- SchemaImporterExtensionElementCollection.cs
- FormattedTextSymbols.cs
- DocumentXmlWriter.cs
- SafeEventLogWriteHandle.cs
- XmlSchemaChoice.cs
- RandomNumberGenerator.cs
- _OSSOCK.cs
- DbProviderServices.cs
- RegexStringValidatorAttribute.cs
- DataRowComparer.cs
- ActivityExecutionFilter.cs
- DiscoveryInnerClientAdhocCD1.cs
- ProtocolsConfigurationHandler.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ByteStack.cs
- MobileControlBuilder.cs
- DataTablePropertyDescriptor.cs
- RecognizerStateChangedEventArgs.cs
- OdbcConnectionOpen.cs
- ReplyChannelBinder.cs
- MulticastDelegate.cs
- AttributeEmitter.cs
- IdentityElement.cs
- WsdlHelpGeneratorElement.cs
- SignedXmlDebugLog.cs
- CryptoConfig.cs
- ObjectViewQueryResultData.cs
- Int32Converter.cs
- TranslateTransform.cs
- TextEditorSelection.cs
- Sql8ConformanceChecker.cs
- QueryCursorEventArgs.cs
- keycontainerpermission.cs
- OdbcEnvironmentHandle.cs
- Renderer.cs
- DiscardableAttribute.cs
- HtmlTernaryTree.cs
- SQLDateTimeStorage.cs
- Font.cs
- StaticFileHandler.cs
- DesignerUtils.cs
- RangeValueProviderWrapper.cs
- FunctionImportElement.cs
- HwndTarget.cs
- ColorAnimation.cs