Code:
/ FX-1434 / FX-1434 / 1.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
- TextEmbeddedObject.cs
- DynamicValueConverter.cs
- KeyValuePair.cs
- ProcessHostServerConfig.cs
- CacheEntry.cs
- ClientScriptManager.cs
- XmlnsCompatibleWithAttribute.cs
- ControlBindingsConverter.cs
- AssertSection.cs
- XmlRootAttribute.cs
- ServiceDescriptionSerializer.cs
- FlowDocumentReader.cs
- ByteAnimationUsingKeyFrames.cs
- TransportContext.cs
- ParenthesizePropertyNameAttribute.cs
- ArgumentOutOfRangeException.cs
- RTLAwareMessageBox.cs
- VectorAnimation.cs
- ContentTypeSettingClientMessageFormatter.cs
- AlignmentYValidation.cs
- XPathSelectionIterator.cs
- CustomCategoryAttribute.cs
- DocumentGridContextMenu.cs
- ConfigurationPermission.cs
- EDesignUtil.cs
- TextElementCollectionHelper.cs
- ClientTargetCollection.cs
- ConstantSlot.cs
- SqlCharStream.cs
- UnsafeNativeMethods.cs
- XmlnsCache.cs
- UseAttributeSetsAction.cs
- Rect.cs
- FontUnitConverter.cs
- ToolStripItemCollection.cs
- PopupRootAutomationPeer.cs
- SettingsPropertyWrongTypeException.cs
- SessionStateSection.cs
- Select.cs
- NGCSerializer.cs
- JournalNavigationScope.cs
- AttachedPropertyMethodSelector.cs
- HtmlInputReset.cs
- SmiEventStream.cs
- DateBoldEvent.cs
- CancelEventArgs.cs
- EntityDescriptor.cs
- PhysicalFontFamily.cs
- Activity.cs
- Overlapped.cs
- ProgressBar.cs
- StaticResourceExtension.cs
- AvTraceFormat.cs
- XmlAutoDetectWriter.cs
- RuntimeTransactionHandle.cs
- LifetimeManager.cs
- SingleObjectCollection.cs
- ImageConverter.cs
- CngAlgorithm.cs
- mongolianshape.cs
- ButtonStandardAdapter.cs
- SafeHandles.cs
- KnownTypesHelper.cs
- StoreItemCollection.cs
- TrackingWorkflowEventArgs.cs
- Stream.cs
- Vector3dCollection.cs
- SubqueryRules.cs
- BaseResourcesBuildProvider.cs
- DrawingContextDrawingContextWalker.cs
- EditorZone.cs
- EnumerableRowCollectionExtensions.cs
- TypeInitializationException.cs
- Identifier.cs
- StylusShape.cs
- UnsafePeerToPeerMethods.cs
- NetStream.cs
- StylusPoint.cs
- RegisteredExpandoAttribute.cs
- CodeDirectoryCompiler.cs
- GACIdentityPermission.cs
- RtfControlWordInfo.cs
- MutableAssemblyCacheEntry.cs
- BypassElement.cs
- DbTransaction.cs
- FileDialog_Vista_Interop.cs
- QueryCacheEntry.cs
- PerformanceCounterLib.cs
- ExpressionVisitor.cs
- UnsafeNativeMethods.cs
- TextElementAutomationPeer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- AppModelKnownContentFactory.cs
- DataGridSortCommandEventArgs.cs
- ValidationHelper.cs
- DataTablePropertyDescriptor.cs
- uribuilder.cs
- MdImport.cs
- ApplicationCommands.cs
- ClientScriptManager.cs