Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SoapAttributeAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- WebControl.cs
- COM2PictureConverter.cs
- PolicyManager.cs
- FontWeights.cs
- _UriTypeConverter.cs
- JournalEntryListConverter.cs
- Win32MouseDevice.cs
- UnauthorizedWebPart.cs
- Container.cs
- ComponentEditorPage.cs
- ContextMenuStripActionList.cs
- DirectionalLight.cs
- CharacterMetrics.cs
- DefaultClaimSet.cs
- SectionVisual.cs
- _DomainName.cs
- InstanceKey.cs
- ObjectQueryState.cs
- _AutoWebProxyScriptWrapper.cs
- TypeListConverter.cs
- DbConnectionPoolOptions.cs
- XmlSchemaSet.cs
- FixUp.cs
- ByteArrayHelperWithString.cs
- SendActivityDesigner.cs
- GetRecipientRequest.cs
- ProfileInfo.cs
- DataGridColumnEventArgs.cs
- DataBoundControl.cs
- SqlGenericUtil.cs
- FileDialog.cs
- COM2EnumConverter.cs
- InterleavedZipPartStream.cs
- GenericAuthenticationEventArgs.cs
- NavigateEvent.cs
- CodeSnippetStatement.cs
- PathSegmentCollection.cs
- SystemIPv6InterfaceProperties.cs
- MatrixStack.cs
- QueryCacheEntry.cs
- BinHexEncoder.cs
- QueryAccessibilityHelpEvent.cs
- QuadraticBezierSegment.cs
- ObfuscateAssemblyAttribute.cs
- RelationHandler.cs
- __Error.cs
- BinHexEncoder.cs
- iisPickupDirectory.cs
- ElementNotAvailableException.cs
- SymbolEqualComparer.cs
- DispatcherHookEventArgs.cs
- MailDefinition.cs
- EventSetter.cs
- CheckBoxField.cs
- ConfigXmlWhitespace.cs
- ADMembershipUser.cs
- DataIdProcessor.cs
- SourceItem.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- ValidationSummaryDesigner.cs
- BulletChrome.cs
- LineServicesRun.cs
- PenContexts.cs
- FileLoadException.cs
- StringUtil.cs
- TagNameToTypeMapper.cs
- CustomBindingElement.cs
- DataGridViewSortCompareEventArgs.cs
- SizeChangedEventArgs.cs
- _SecureChannel.cs
- HighlightOverlayGlyph.cs
- SiteMapProvider.cs
- RequestResizeEvent.cs
- ContainerAction.cs
- JavaScriptSerializer.cs
- BuildManagerHost.cs
- odbcmetadatafactory.cs
- Baml2006KeyRecord.cs
- ExpressionPrefixAttribute.cs
- SettingsContext.cs
- ServiceModelStringsVersion1.cs
- Bits.cs
- InternalBase.cs
- ProfilePropertyNameValidator.cs
- WindowsPrincipal.cs
- CacheVirtualItemsEvent.cs
- CounterSample.cs
- ImpersonateTokenRef.cs
- LookupNode.cs
- HttpHandlerActionCollection.cs
- ProxyWebPartManager.cs
- DataGridBoundColumn.cs
- WebConfigurationHost.cs
- ClientSettingsStore.cs
- AsyncPostBackErrorEventArgs.cs
- DataGridViewButtonCell.cs
- assertwrapper.cs
- ResourceBinder.cs