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
- DrawingBrush.cs
- DnsPermission.cs
- XappLauncher.cs
- SuppressMergeCheckAttribute.cs
- TextProviderWrapper.cs
- ToolStripItemImageRenderEventArgs.cs
- DbConnectionInternal.cs
- PathFigure.cs
- BaseConfigurationRecord.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- EntityDesignerDataSourceView.cs
- InputProviderSite.cs
- Util.cs
- HttpApplication.cs
- FileController.cs
- TraceListeners.cs
- DashStyle.cs
- SectionInput.cs
- NotConverter.cs
- DomNameTable.cs
- TextTreeInsertElementUndoUnit.cs
- ServiceMoniker.cs
- _DisconnectOverlappedAsyncResult.cs
- HtmlShim.cs
- X509Extension.cs
- DtdParser.cs
- TextEditorSelection.cs
- DataBindingExpressionBuilder.cs
- SecUtil.cs
- SafeProcessHandle.cs
- KnownTypesHelper.cs
- ColumnTypeConverter.cs
- ResizingMessageFilter.cs
- Membership.cs
- EntityRecordInfo.cs
- QueryCacheEntry.cs
- PerspectiveCamera.cs
- X509SecurityToken.cs
- DesignTableCollection.cs
- OleDbReferenceCollection.cs
- DrawingContextDrawingContextWalker.cs
- VirtualPath.cs
- ComplexLine.cs
- Assembly.cs
- PageSetupDialog.cs
- MessageSecurityVersion.cs
- PathSegment.cs
- infer.cs
- xamlnodes.cs
- ellipse.cs
- FilteredAttributeCollection.cs
- DetailsViewPagerRow.cs
- TextDocumentView.cs
- OdbcConnectionOpen.cs
- WebPartHeaderCloseVerb.cs
- ClientSettingsProvider.cs
- WbmpConverter.cs
- StringReader.cs
- RegexInterpreter.cs
- DurableInstanceProvider.cs
- NetworkAddressChange.cs
- MappingException.cs
- SimplePropertyEntry.cs
- OleDbDataAdapter.cs
- ScaleTransform.cs
- CollectionBase.cs
- PolicyStatement.cs
- OutputCacheModule.cs
- MonitorWrapper.cs
- RegistryDataKey.cs
- LoadedEvent.cs
- SessionSwitchEventArgs.cs
- PointAnimationUsingKeyFrames.cs
- CodeAssignStatement.cs
- Int32AnimationUsingKeyFrames.cs
- SchemaCompiler.cs
- Classification.cs
- DataGridItemAutomationPeer.cs
- WebPartDisplayModeCancelEventArgs.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ServerValidateEventArgs.cs
- HTMLTextWriter.cs
- EntityContainerEmitter.cs
- RegisteredDisposeScript.cs
- ConcurrentStack.cs
- DialogWindow.cs
- SecurityTokenException.cs
- ArglessEventHandlerProxy.cs
- DescendentsWalker.cs
- HandlerFactoryCache.cs
- TdsParserSafeHandles.cs
- DataGridParentRows.cs
- ConfigXmlElement.cs
- ThreadAttributes.cs
- FlagsAttribute.cs
- VSWCFServiceContractGenerator.cs
- XmlSchemaAnnotation.cs
- LazyTextWriterCreator.cs
- X509Certificate.cs
- ListViewInsertedEventArgs.cs