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
- WsatTransactionHeader.cs
- ClientBuildManagerCallback.cs
- TextParagraphView.cs
- NamedPermissionSet.cs
- LineSegment.cs
- DropDownList.cs
- ReturnType.cs
- AsyncPostBackErrorEventArgs.cs
- PartialArray.cs
- TreeNodeStyleCollection.cs
- ThreadBehavior.cs
- TreeSet.cs
- ListQueryResults.cs
- EncryptedData.cs
- FtpWebResponse.cs
- ButtonBase.cs
- GeneralTransform3D.cs
- DecoderNLS.cs
- XmlSchemaAttribute.cs
- securitycriticaldata.cs
- SupportsEventValidationAttribute.cs
- DataGridViewTextBoxEditingControl.cs
- GraphicsContainer.cs
- CssStyleCollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataGridDetailsPresenter.cs
- SafeLocalMemHandle.cs
- MetadataArtifactLoaderCompositeFile.cs
- Point3D.cs
- XmlSerializationReader.cs
- BinaryWriter.cs
- PropertyMap.cs
- HostedImpersonationContext.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- QilIterator.cs
- TaskSchedulerException.cs
- SQLByte.cs
- SerializationException.cs
- Cloud.cs
- Stopwatch.cs
- Error.cs
- SpellerError.cs
- Bits.cs
- SqlFunctions.cs
- ThreadStartException.cs
- XpsImageSerializationService.cs
- BinaryNegotiation.cs
- BuiltInExpr.cs
- ProfilePropertyMetadata.cs
- Matrix.cs
- RepeatBehavior.cs
- Ops.cs
- AstTree.cs
- FontSourceCollection.cs
- ReferenceEqualityComparer.cs
- NoneExcludedImageIndexConverter.cs
- SrgsSubset.cs
- WorkflowApplication.cs
- RtfToXamlReader.cs
- SqlNodeTypeOperators.cs
- SafeWaitHandle.cs
- ColumnHeaderConverter.cs
- DrawingDrawingContext.cs
- StrokeIntersection.cs
- SafeThreadHandle.cs
- StrokeCollection2.cs
- TypeForwardedToAttribute.cs
- MDIClient.cs
- DataBindingList.cs
- MarkupCompilePass2.cs
- ItemsChangedEventArgs.cs
- TextServicesManager.cs
- TreeViewItem.cs
- RuntimeWrappedException.cs
- ChtmlTextWriter.cs
- XmlCharCheckingWriter.cs
- FormViewPageEventArgs.cs
- DataGridViewColumnDesigner.cs
- ColumnMapProcessor.cs
- PrintingPermission.cs
- RectValueSerializer.cs
- DataTableMappingCollection.cs
- DataControlImageButton.cs
- GorillaCodec.cs
- CapabilitiesRule.cs
- UnitySerializationHolder.cs
- CustomSignedXml.cs
- ContentTextAutomationPeer.cs
- DrawItemEvent.cs
- DropShadowBitmapEffect.cs
- XmlWellformedWriter.cs
- NgenServicingAttributes.cs
- OdbcConnectionPoolProviderInfo.cs
- DesignSurfaceCollection.cs
- dtdvalidator.cs
- ObjectManager.cs
- Tuple.cs
- Query.cs
- TypeConstant.cs
- Stroke2.cs