Class SmtpOAuthController
SMTP OAuth controller.
Inheritance
System.Object
SmtpOAuthController
Implements
Namespace: DotNetNuke.Services.Mail.OAuth
Assembly: DotNetNuke.dll
Syntax
public class SmtpOAuthController : object, ISmtpOAuthController
Constructors
| Improve this Doc View SourceSmtpOAuthController(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 SourceGetOAuthProvider(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. |
GetOAuthProviders()
Get all the OAuth providers.
Declaration
public IReadOnlyCollection<ISmtpOAuthProvider> GetOAuthProviders()
Returns
Type | Description |
---|---|
IReadOnlyCollection<ISmtpOAuthProvider> | OAuth providers list. |
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. |