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
- login.cs
- DbMetaDataColumnNames.cs
- Int32Rect.cs
- SynchronizedInputPattern.cs
- Formatter.cs
- EdgeModeValidation.cs
- TextTreeRootNode.cs
- AutoResetEvent.cs
- ArglessEventHandlerProxy.cs
- TextEffectResolver.cs
- HijriCalendar.cs
- FreeFormPanel.cs
- XamlLoadErrorInfo.cs
- NonceToken.cs
- Environment.cs
- GotoExpression.cs
- Helper.cs
- Binding.cs
- ActivityExecutionContext.cs
- DoubleAnimationUsingPath.cs
- ListViewUpdatedEventArgs.cs
- Run.cs
- CompiledRegexRunnerFactory.cs
- CachedTypeface.cs
- GridViewRow.cs
- DatePickerAutomationPeer.cs
- M3DUtil.cs
- Setter.cs
- initElementDictionary.cs
- PropertyBuilder.cs
- BrowserCapabilitiesCompiler.cs
- LocalizabilityAttribute.cs
- WorkflowRuntimeServiceElementCollection.cs
- Tag.cs
- ScriptManagerProxy.cs
- DataGridItem.cs
- DocumentXmlWriter.cs
- ScriptMethodAttribute.cs
- QilValidationVisitor.cs
- CodeExpressionCollection.cs
- indexingfiltermarshaler.cs
- AnimationStorage.cs
- EntryIndex.cs
- KnownTypes.cs
- MenuEventArgs.cs
- StylusEditingBehavior.cs
- Splitter.cs
- CodeMethodInvokeExpression.cs
- RelationshipEnd.cs
- DataGridViewCheckBoxColumn.cs
- Stack.cs
- XappLauncher.cs
- ProcessHostMapPath.cs
- StreamSecurityUpgradeInitiator.cs
- UnsafeCollabNativeMethods.cs
- XmlArrayItemAttribute.cs
- BStrWrapper.cs
- XmlBindingWorker.cs
- XmlNodeComparer.cs
- NetTcpBinding.cs
- SortKey.cs
- WebPartConnectionsConfigureVerb.cs
- SimpleMailWebEventProvider.cs
- PathTooLongException.cs
- NamedPermissionSet.cs
- SmiMetaDataProperty.cs
- TreeIterators.cs
- Classification.cs
- PropertyEmitterBase.cs
- DecimalFormatter.cs
- ValueUtilsSmi.cs
- ProfilePropertySettings.cs
- BinaryObjectReader.cs
- AttachedPropertyBrowsableAttribute.cs
- ScrollItemPatternIdentifiers.cs
- LinkLabel.cs
- sqlnorm.cs
- SamlDelegatingWriter.cs
- _SecureChannel.cs
- SocketPermission.cs
- IDispatchConstantAttribute.cs
- AsyncResult.cs
- PropertyDescriptors.cs
- MarginsConverter.cs
- DefaultBinder.cs
- DeferredReference.cs
- WindowsTooltip.cs
- UndoUnit.cs
- ClosableStream.cs
- QuadraticBezierSegment.cs
- DateTime.cs
- ScrollViewerAutomationPeer.cs
- DbMetaDataCollectionNames.cs
- OdbcConnectionString.cs
- BindingContext.cs
- AssertUtility.cs
- WebPartMenu.cs
- GiveFeedbackEventArgs.cs
- EventMappingSettings.cs
- InfoCardProofToken.cs