• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class SmtpOAuthController

SMTP OAuth controller.

Inheritance
System.Object
SmtpOAuthController
Implements
ISmtpOAuthController
Namespace: DotNetNuke.Services.Mail.OAuth
Assembly: DotNetNuke.dll
Syntax
public class SmtpOAuthController : object, ISmtpOAuthController

Constructors

| Improve this Doc View Source

SmtpOAuthController(IEnumerable<ISmtpOAuthProvider>)

Initializes a new instance of the SmtpOAuthController class.

Declaration
public SmtpOAuthController(IEnumerable<ISmtpOAuthProvider> smtpOAuthProviders)
Parameters
Type Name Description
IEnumerable<ISmtpOAuthProvider> smtpOAuthProviders

The SMTP OAuth providers.

Methods

| Improve this Doc View Source

GetOAuthProvider(String)

Get an OAuth provider by name.

Declaration
public ISmtpOAuthProvider GetOAuthProvider(string name)
Parameters
Type Name Description
System.String name

The provider name.

Returns
Type Description
ISmtpOAuthProvider

The OAuth provider or null.

| Improve this Doc View Source

GetOAuthProviders()

Get all the OAuth providers.

Declaration
public IReadOnlyCollection<ISmtpOAuthProvider> GetOAuthProviders()
Returns
Type Description
IReadOnlyCollection<ISmtpOAuthProvider>

OAuth providers list.

| Improve this Doc View Source

RegisterOAuthProviders(IServiceCollection)

Registers all of the ISmtpOAuthProvider types with the serviceCollection.

Declaration
public static void RegisterOAuthProviders(IServiceCollection serviceCollection)
Parameters
Type Name Description
IServiceCollection serviceCollection

The services collection.

Implements

ISmtpOAuthController

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS