Created
January 12, 2024 13:24
-
-
Save rcosnita/4ab30be78a50045c3522fadcb2880bb5 to your computer and use it in GitHub Desktop.
Sample code excellently explained by Jetbrains AI Assistant: externalemailprovider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Provides the interface for plugging in a new external email provider. | |
export class ExternalEmailProvider { | |
public: | |
// Provides the contract for sending an email through the external email | |
// provider. | |
virtual auto sendEmail(Email&& email) -> async::NoneAsync = 0; | |
// Provides the contract for diagnosing the external email provider. | |
virtual auto diagnose( | |
proto::EmailProviderDiagnosisActionType_Enum action, | |
ExternalEmailProviderDiagnosisContext&& ctx) | |
-> async::coroutine<proto::EmailProviderDiagnosisResponse> = 0; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment