Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HashHelper.cs
- DesignerActionListCollection.cs
- OletxVolatileEnlistment.cs
- ProgramPublisher.cs
- DbDataAdapter.cs
- ImmComposition.cs
- _BaseOverlappedAsyncResult.cs
- SizeAnimationBase.cs
- CheckedPointers.cs
- TemplatingOptionsDialog.cs
- ValidationErrorEventArgs.cs
- HttpModulesSection.cs
- SamlAssertionKeyIdentifierClause.cs
- ListDictionary.cs
- WindowsTokenRoleProvider.cs
- _LazyAsyncResult.cs
- FlowDocumentPage.cs
- Decorator.cs
- ListViewCommandEventArgs.cs
- CriticalExceptions.cs
- OledbConnectionStringbuilder.cs
- RSACryptoServiceProvider.cs
- ListMarkerSourceInfo.cs
- AutomationElementIdentifiers.cs
- LineSegment.cs
- ItemCollection.cs
- GridViewColumnHeader.cs
- GridLength.cs
- Types.cs
- SqlIdentifier.cs
- DtdParser.cs
- DragStartedEventArgs.cs
- SqlFormatter.cs
- WorkflowElementDialog.cs
- UIEndRequest.cs
- InstalledVoice.cs
- SqlTriggerAttribute.cs
- TextSelection.cs
- ServiceMoniker.cs
- FileSecurity.cs
- SoapIgnoreAttribute.cs
- WebPartConnectionsConnectVerb.cs
- DefaultWorkflowTransactionService.cs
- StateManagedCollection.cs
- HtmlEncodedRawTextWriter.cs
- PipelineModuleStepContainer.cs
- StartUpEventArgs.cs
- DataGridViewRowPrePaintEventArgs.cs
- RadioButtonList.cs
- DateTimeUtil.cs
- PartitionedStream.cs
- SearchForVirtualItemEventArgs.cs
- Selection.cs
- InfoCardKeyedHashAlgorithm.cs
- WindowsAuthenticationEventArgs.cs
- TextElement.cs
- MessageBox.cs
- SoundPlayerAction.cs
- EntityTransaction.cs
- mediaeventargs.cs
- Enlistment.cs
- XNameTypeConverter.cs
- XmlNamespaceManager.cs
- ObjectPropertyMapping.cs
- IdentityNotMappedException.cs
- IMembershipProvider.cs
- Parameter.cs
- MenuItemCollection.cs
- RSACryptoServiceProvider.cs
- WorkflowInstanceContextProvider.cs
- ImageMapEventArgs.cs
- PageAsyncTaskManager.cs
- DoubleIndependentAnimationStorage.cs
- HttpResponseBase.cs
- AffineTransform3D.cs
- SqlDependencyUtils.cs
- WindowsStatic.cs
- TextElementEnumerator.cs
- DataTableMapping.cs
- PackUriHelper.cs
- PageHandlerFactory.cs
- WorkflowViewElement.cs
- Button.cs
- HttpFileCollection.cs
- ActivityMetadata.cs
- SecurityTokenValidationException.cs
- Logging.cs
- DoubleCollectionConverter.cs
- TimelineCollection.cs
- DialogDivider.cs
- AmbientValueAttribute.cs
- XmlDataImplementation.cs
- RuleSetDialog.Designer.cs
- MobileContainerDesigner.cs
- ManifestResourceInfo.cs
- HtmlButton.cs
- DataException.cs
- Vector3DIndependentAnimationStorage.cs
- WebServiceData.cs
- SimpleRecyclingCache.cs