Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Mail / SmtpAuthenticationManager.cs / 1 / SmtpAuthenticationManager.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Mail { using System; using System.Collections; using System.IO; using System.Net; internal static class SmtpAuthenticationManager { static ArrayList modules = new ArrayList(); static SmtpAuthenticationManager() { // #if !FEATURE_PAL if (ComNetOS.IsWin2K) { // Negotiate supported only if Win2K or later Register(new SmtpNegotiateAuthenticationModule()); } Register(new SmtpNtlmAuthenticationModule()); Register(new SmtpDigestAuthenticationModule()); #endif // !FEATURE_PAL Register(new SmtpLoginAuthenticationModule()); } internal static void Register(ISmtpAuthenticationModule module) { if (module == null) throw new ArgumentNullException("module"); lock (modules) { modules.Add(module); } } /* // Consider removing. internal static void Unregister(ISmtpAuthenticationModule module) { if (module == null) throw new ArgumentNullException("module"); lock (modules) { modules.Remove(module); } } */ /* // Consider removing. internal static void Unregister(string authenticationType) { if (authenticationType == null) throw new ArgumentNullException("authenticationType"); lock (modules) { foreach (ISmtpAuthenticationModule module in modules) { if (0 == string.Compare(module.AuthenticationType, authenticationType, StringComparison.OrdinalIgnoreCase)) { modules.Remove(module); } } } } */ internal static ISmtpAuthenticationModule[] GetModules() { lock (modules) { ISmtpAuthenticationModule[] copy = new ISmtpAuthenticationModule[modules.Count]; modules.CopyTo(0, copy, 0, modules.Count); return copy; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PointConverter.cs
- SqlConnectionFactory.cs
- X509CertificateValidator.cs
- mediaeventargs.cs
- XmlDocumentSerializer.cs
- HelpKeywordAttribute.cs
- DataServiceBehavior.cs
- WrapPanel.cs
- DataGridLinkButton.cs
- EventlogProvider.cs
- util.cs
- SecurityDocument.cs
- Html32TextWriter.cs
- MobileErrorInfo.cs
- XslCompiledTransform.cs
- EntityCommandCompilationException.cs
- CheckBoxStandardAdapter.cs
- ManipulationStartingEventArgs.cs
- DataBindingList.cs
- UnaryQueryOperator.cs
- ColorBlend.cs
- ErrorWrapper.cs
- QilExpression.cs
- BatchParser.cs
- CanExecuteRoutedEventArgs.cs
- DiffuseMaterial.cs
- SuppressIldasmAttribute.cs
- ChangesetResponse.cs
- PropertyValueChangedEvent.cs
- WebRequestModulesSection.cs
- SecurityStateEncoder.cs
- StrokeCollectionConverter.cs
- TypeForwardedToAttribute.cs
- TransformGroup.cs
- FontSizeConverter.cs
- MultiPropertyDescriptorGridEntry.cs
- StrokeFIndices.cs
- FormViewCommandEventArgs.cs
- PointAnimationUsingKeyFrames.cs
- XmlSchemaElement.cs
- AppDomainResourcePerfCounters.cs
- XPathSelfQuery.cs
- BevelBitmapEffect.cs
- SessionEndingEventArgs.cs
- SimpleWorkerRequest.cs
- EasingKeyFrames.cs
- HwndMouseInputProvider.cs
- RtfFormatStack.cs
- ShadowGlyph.cs
- DataGridItem.cs
- UIElementPropertyUndoUnit.cs
- _SslStream.cs
- SpellCheck.cs
- TextOutput.cs
- DbDataSourceEnumerator.cs
- Int32RectConverter.cs
- EntitySqlException.cs
- CodeIdentifier.cs
- ObjectCloneHelper.cs
- RoleManagerModule.cs
- ReadOnlyHierarchicalDataSource.cs
- DataControlButton.cs
- BaseInfoTable.cs
- HttpResponseHeader.cs
- AccessibleObject.cs
- MasterPage.cs
- relpropertyhelper.cs
- DelegateOutArgument.cs
- SingleTagSectionHandler.cs
- TabPanel.cs
- lengthconverter.cs
- OutputCacheProfile.cs
- ScalarConstant.cs
- CharacterBufferReference.cs
- WebPartVerbCollection.cs
- RegionInfo.cs
- BaseDataBoundControl.cs
- ReadingWritingEntityEventArgs.cs
- WebZoneDesigner.cs
- Int32Rect.cs
- HttpCacheVaryByContentEncodings.cs
- PipeConnection.cs
- SequentialActivityDesigner.cs
- PointConverter.cs
- Model3DCollection.cs
- XslTransform.cs
- ReadingWritingEntityEventArgs.cs
- RadioButton.cs
- FillErrorEventArgs.cs
- ProbeMatchesMessageCD1.cs
- XmlReaderSettings.cs
- SiteMapNodeCollection.cs
- ObjectIDGenerator.cs
- XmlProcessingInstruction.cs
- DataGridViewCellCollection.cs
- RelOps.cs
- GridViewPageEventArgs.cs
- DeclaredTypeElementCollection.cs
- CompModSwitches.cs
- AnnouncementClient.cs