diff options
author | vnugent <public@vaughnnugent.com> | 2023-01-09 15:09:13 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-01-09 15:09:13 -0500 |
commit | a46c3bf452d287b50b2e7dd5a24f5995c9fd26f6 (patch) | |
tree | 3a978b2dd2887b5c0e25f595516594a647d8e880 /lib/VNLib.Plugins.Extentions.TransactionalEmail/src/EmailSystemConfig.cs | |
parent | 189c6714057bf45553847eaeb9ce97eb7272eb8c (diff) |
Restructure
Diffstat (limited to 'lib/VNLib.Plugins.Extentions.TransactionalEmail/src/EmailSystemConfig.cs')
-rw-r--r-- | lib/VNLib.Plugins.Extentions.TransactionalEmail/src/EmailSystemConfig.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/VNLib.Plugins.Extentions.TransactionalEmail/src/EmailSystemConfig.cs b/lib/VNLib.Plugins.Extentions.TransactionalEmail/src/EmailSystemConfig.cs new file mode 100644 index 0000000..5d7406a --- /dev/null +++ b/lib/VNLib.Plugins.Extentions.TransactionalEmail/src/EmailSystemConfig.cs @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2022 Vaughn Nugent +* +* Library: VNLib +* Package: VNLib.Plugins.Extentions.TransactionalEmail +* File: EmailSystemConfig.cs +* +* EmailSystemConfig.cs is part of VNLib.Plugins.Extentions.TransactionalEmail which is part of the larger +* VNLib collection of libraries and utilities. +* +* VNLib.Plugins.Extentions.TransactionalEmail is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published +* by the Free Software Foundation, either version 2 of the License, +* or (at your option) any later version. +* +* VNLib.Plugins.Extentions.TransactionalEmail is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with VNLib.Plugins.Extentions.TransactionalEmail. If not, see http://www.gnu.org/licenses/. +*/ + +using RestSharp; + +using Emails.Transactional.Client; +using VNLib.Net.Rest.Client; + + +namespace VNLib.Plugins.Extentions.TransactionalEmail +{ + /// <summary> + /// An extended <see cref="TransactionalEmailConfig"/> configuration + /// object that contains a <see cref="Net.Rest.Client.RestClientPool"/> pool for making + /// transactions + /// </summary> + internal sealed class EmailSystemConfig : TransactionalEmailConfig + { + /// <summary> + /// A shared <see cref="Net.Rest.Client.RestClientPool"/> for renting configuraed + /// <see cref="RestClient"/> + /// </summary> + public RestClientPool RestClientPool { get; init; } + /// <summary> + /// A global from email address name + /// </summary> + public string EmailFromName { get; init; } + /// <summary> + /// A global from email address + /// </summary> + public string EmailFromAddress { get; init; } + } +}
\ No newline at end of file |