Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Mail / SmtpAuthenticationManager.cs / 1305376 / 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; } } } } // 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
- RegexCapture.cs
- URIFormatException.cs
- DesignerGeometryHelper.cs
- StagingAreaInputItem.cs
- TcpSocketManager.cs
- CodeAccessPermission.cs
- FigureHelper.cs
- PageRanges.cs
- UndoManager.cs
- MultiTrigger.cs
- StatusBarItem.cs
- XmlBaseReader.cs
- LabelEditEvent.cs
- TreeViewItem.cs
- LoadRetryAsyncResult.cs
- MinimizableAttributeTypeConverter.cs
- GroupItem.cs
- TcpProcessProtocolHandler.cs
- IpcChannelHelper.cs
- ConfigViewGenerator.cs
- BamlWriter.cs
- RadioButtonRenderer.cs
- LassoSelectionBehavior.cs
- NamespaceList.cs
- TypeConverterValueSerializer.cs
- SortDescriptionCollection.cs
- StorageInfo.cs
- BuildProvider.cs
- CalendarAutomationPeer.cs
- WebBrowserDesigner.cs
- Ray3DHitTestResult.cs
- BaseCodeDomTreeGenerator.cs
- DbProviderFactoriesConfigurationHandler.cs
- PageAsyncTask.cs
- VerificationException.cs
- KnowledgeBase.cs
- HtmlToClrEventProxy.cs
- TranslateTransform3D.cs
- FocusManager.cs
- StoryFragments.cs
- IdentityNotMappedException.cs
- Config.cs
- Main.cs
- OrCondition.cs
- httpstaticobjectscollection.cs
- HandlerMappingMemo.cs
- VisualStyleInformation.cs
- TextSegment.cs
- ExpressionNormalizer.cs
- ActivityExecutorOperation.cs
- ListItemCollection.cs
- TextPointer.cs
- Int64Converter.cs
- VarRemapper.cs
- DuplexSecurityProtocolFactory.cs
- ReaderWriterLock.cs
- SpellerInterop.cs
- OleDbStruct.cs
- Transactions.cs
- ContentTextAutomationPeer.cs
- RemoteDebugger.cs
- SafeCoTaskMem.cs
- FigureParagraph.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- FixedSchema.cs
- Image.cs
- GridViewCommandEventArgs.cs
- CaseStatementProjectedSlot.cs
- XmlSchemaType.cs
- DispatchChannelSink.cs
- OutputCacheProfile.cs
- ScrollItemPattern.cs
- SvcMapFileLoader.cs
- ComponentChangedEvent.cs
- StringToken.cs
- PackageRelationshipCollection.cs
- Matrix.cs
- BitmapPalettes.cs
- CompilerResults.cs
- GridViewPageEventArgs.cs
- TCEAdapterGenerator.cs
- ProjectionCamera.cs
- ResourceManager.cs
- Scripts.cs
- ArithmeticLiteral.cs
- HttpModuleActionCollection.cs
- TextSpan.cs
- ThicknessAnimation.cs
- MimeBasePart.cs
- WebPartMovingEventArgs.cs
- DataGridAddNewRow.cs
- GridViewDeleteEventArgs.cs
- RangeValidator.cs
- newinstructionaction.cs
- TextChangedEventArgs.cs
- HostedTransportConfigurationManager.cs
- webbrowsersite.cs
- HandlerBase.cs
- contentDescriptor.cs
- SQLInt64.cs