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
- XamlSerializerUtil.cs
- EntityException.cs
- ProcessHostConfigUtils.cs
- BamlRecordHelper.cs
- EventLogPermissionEntryCollection.cs
- ContainerUtilities.cs
- PerformanceCounterPermissionEntry.cs
- DecimalAnimationUsingKeyFrames.cs
- XmlBufferReader.cs
- webeventbuffer.cs
- DrawingContextWalker.cs
- ChtmlTextWriter.cs
- NativeCompoundFileAPIs.cs
- SafeFindHandle.cs
- DataGridViewRowPrePaintEventArgs.cs
- connectionpool.cs
- DecoderFallback.cs
- ListItemCollection.cs
- PresentationTraceSources.cs
- WebPartZoneCollection.cs
- VisualCollection.cs
- Matrix3DConverter.cs
- PeerHelpers.cs
- OutputWindow.cs
- LinearGradientBrush.cs
- Range.cs
- MasterPageBuildProvider.cs
- PropertyGridView.cs
- JsonFormatGeneratorStatics.cs
- SpecialNameAttribute.cs
- ArgIterator.cs
- XamlFilter.cs
- AliasedSlot.cs
- XmlBinaryReader.cs
- FlowStep.cs
- DataGridViewTextBoxColumn.cs
- SymbolMethod.cs
- X509RawDataKeyIdentifierClause.cs
- HttpResponseHeader.cs
- EdmComplexTypeAttribute.cs
- SchemaImporterExtension.cs
- XmlSchemaIdentityConstraint.cs
- DataPointer.cs
- elementinformation.cs
- Normalization.cs
- EncodingTable.cs
- SudsWriter.cs
- _ProxyChain.cs
- XPathScanner.cs
- DesignerDataColumn.cs
- HtmlTableCellCollection.cs
- AssemblyBuilder.cs
- TemplateDefinition.cs
- LineVisual.cs
- PackWebRequest.cs
- hebrewshape.cs
- OutOfProcStateClientManager.cs
- ReadOnlyAttribute.cs
- CatalogUtil.cs
- PeerApplication.cs
- DockProviderWrapper.cs
- ValidatorCollection.cs
- ByteKeyFrameCollection.cs
- TempFiles.cs
- SqlCommandSet.cs
- WinFormsSecurity.cs
- TypeDelegator.cs
- BitmapMetadataEnumerator.cs
- TransformedBitmap.cs
- SelectionWordBreaker.cs
- ExpressionHelper.cs
- Message.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- UIElementParagraph.cs
- DataPagerFieldItem.cs
- validationstate.cs
- Label.cs
- SafeHandle.cs
- XPathMessageFilter.cs
- _BufferOffsetSize.cs
- CompoundFileStreamReference.cs
- InstancePersistenceContext.cs
- ScrollData.cs
- MailBnfHelper.cs
- TableSectionStyle.cs
- XmlNodeComparer.cs
- DesignerTransaction.cs
- XmlSchemaSimpleTypeUnion.cs
- UserValidatedEventArgs.cs
- ToolStripRenderer.cs
- TextDocumentView.cs
- TraceContextRecord.cs
- TagMapInfo.cs
- ReadOnlyCollectionBuilder.cs
- TraceHandlerErrorFormatter.cs
- ExtensionFile.cs
- IntegrationExceptionEventArgs.cs
- XslAstAnalyzer.cs
- MimeImporter.cs
- ContainerAction.cs