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
- SerializationSectionGroup.cs
- PagedDataSource.cs
- FormsIdentity.cs
- PropertyMetadata.cs
- WebPartConnectVerb.cs
- ScriptModule.cs
- _DynamicWinsockMethods.cs
- BamlResourceSerializer.cs
- AssemblyInfo.cs
- EmptyElement.cs
- DataDocumentXPathNavigator.cs
- DocumentXmlWriter.cs
- Expression.cs
- DesignerActionMethodItem.cs
- DeflateEmulationStream.cs
- ResourceReferenceKeyNotFoundException.cs
- PrivacyNoticeElement.cs
- Operator.cs
- autovalidator.cs
- Point4DValueSerializer.cs
- ToolBarButtonDesigner.cs
- ClientSettingsStore.cs
- MemberRestriction.cs
- EntityDataSourceSelectingEventArgs.cs
- EncryptedType.cs
- UnaryQueryOperator.cs
- EnumBuilder.cs
- Bidi.cs
- NativeWindow.cs
- DrawListViewItemEventArgs.cs
- _ContextAwareResult.cs
- DbParameterCollection.cs
- Avt.cs
- PropertyGeneratedEventArgs.cs
- RelationshipEndCollection.cs
- SetStoryboardSpeedRatio.cs
- StringFunctions.cs
- ControlUtil.cs
- ZeroOpNode.cs
- TargetConverter.cs
- SyndicationElementExtension.cs
- Condition.cs
- InstalledFontCollection.cs
- LinkedList.cs
- Native.cs
- DataKeyArray.cs
- Utils.cs
- Literal.cs
- ObjectStateFormatter.cs
- BuildResultCache.cs
- ListDictionary.cs
- AttachedPropertyMethodSelector.cs
- PathData.cs
- AttributeEmitter.cs
- BindingGroup.cs
- EmptyImpersonationContext.cs
- EmissiveMaterial.cs
- ControlCollection.cs
- Event.cs
- TableRowCollection.cs
- ListItemDetailViewAttribute.cs
- ResourcesBuildProvider.cs
- ClientConvert.cs
- TypographyProperties.cs
- SerialPort.cs
- AsyncResult.cs
- HealthMonitoringSectionHelper.cs
- NavigationPropertyEmitter.cs
- Event.cs
- XmlILConstructAnalyzer.cs
- SocketAddress.cs
- TimeSpan.cs
- DetailsViewDeletedEventArgs.cs
- ModifierKeysConverter.cs
- PathFigure.cs
- RIPEMD160.cs
- ReflectionPermission.cs
- WebPartHeaderCloseVerb.cs
- TransportBindingElement.cs
- UIPropertyMetadata.cs
- TemplatePartAttribute.cs
- DBDataPermissionAttribute.cs
- behaviorssection.cs
- PanelStyle.cs
- ImageCodecInfoPrivate.cs
- AsyncOperationManager.cs
- SendAgentStatusRequest.cs
- ToolStripDesignerAvailabilityAttribute.cs
- SystemIPv6InterfaceProperties.cs
- TerminateSequenceResponse.cs
- TableRowCollection.cs
- SafeNativeMethods.cs
- EditorPartCollection.cs
- ServiceObjectContainer.cs
- Color.cs
- EmbossBitmapEffect.cs
- FormatConvertedBitmap.cs
- FindCriteriaElement.cs
- XmlSchemaObjectTable.cs
- Comparer.cs