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
- ComContractElement.cs
- VisualBasicHelper.cs
- OperandQuery.cs
- XmlBinaryReader.cs
- XmlCharCheckingReader.cs
- FixedSOMGroup.cs
- DependencyPropertyChangedEventArgs.cs
- ComAdminWrapper.cs
- HandleCollector.cs
- FunctionImportElement.cs
- DateTimeConstantAttribute.cs
- CodeCatchClause.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- RemotingAttributes.cs
- ConfigXmlWhitespace.cs
- ExtendedProtectionPolicy.cs
- MessageEncodingBindingElement.cs
- CheckPair.cs
- ColorKeyFrameCollection.cs
- ProtocolsSection.cs
- FocusChangedEventArgs.cs
- UInt16Converter.cs
- TemplateControlParser.cs
- DataGridViewButtonColumn.cs
- NetStream.cs
- XsltArgumentList.cs
- QilExpression.cs
- SqlConnectionManager.cs
- RegisterResponseInfo.cs
- Sentence.cs
- NetCodeGroup.cs
- QilBinary.cs
- Timer.cs
- StoreItemCollection.cs
- WebPartConnectVerb.cs
- EntityUtil.cs
- HandlerWithFactory.cs
- ToolStripRendererSwitcher.cs
- XmlNodeComparer.cs
- DataControlFieldHeaderCell.cs
- SerializationException.cs
- DoubleLink.cs
- TransactionFormatter.cs
- DataGridViewCellMouseEventArgs.cs
- UriParserTemplates.cs
- StringTraceRecord.cs
- DBDataPermissionAttribute.cs
- Baml2006KeyRecord.cs
- HtmlElement.cs
- SecurityResources.cs
- SQLChars.cs
- RuntimeResourceSet.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- OleDbError.cs
- Pkcs7Recipient.cs
- OciEnlistContext.cs
- WebPartEditorApplyVerb.cs
- SectionXmlInfo.cs
- PolyBezierSegment.cs
- VarInfo.cs
- FormatConvertedBitmap.cs
- GetCryptoTransformRequest.cs
- Logging.cs
- HttpFileCollection.cs
- ReadOnlyAttribute.cs
- FeatureSupport.cs
- Persist.cs
- SqlDataSourceConfigureSelectPanel.cs
- WindowHideOrCloseTracker.cs
- DataGridViewCellStyleBuilderDialog.cs
- SqlAliaser.cs
- EventLogLink.cs
- SqlDataSourceView.cs
- TaiwanLunisolarCalendar.cs
- TargetPerspective.cs
- validation.cs
- CustomValidator.cs
- XamlStream.cs
- FontUnitConverter.cs
- MessageAction.cs
- DataComponentNameHandler.cs
- SoapElementAttribute.cs
- SortQueryOperator.cs
- ListBoxAutomationPeer.cs
- InvalidEnumArgumentException.cs
- IPeerNeighbor.cs
- GridViewPageEventArgs.cs
- BindingListCollectionView.cs
- UnmanagedMemoryStreamWrapper.cs
- AdRotatorDesigner.cs
- Canvas.cs
- FontCacheUtil.cs
- XmlSignatureManifest.cs
- DbTypeMap.cs
- KeyedHashAlgorithm.cs
- CustomValidator.cs
- UserControlBuildProvider.cs
- EventToken.cs
- ScriptResourceHandler.cs