File tree 8 files changed +35
-12
lines changed
DependencyInjection/Email.NET.DependencyInjection
8 files changed +35
-12
lines changed Original file line number Diff line number Diff line change 1
1
namespace Microsoft . Extensions . DependencyInjection
2
2
{
3
3
using Email . NET ;
4
- using Email . NET . EDP ;
4
+ using Email . NET . EDP ;
5
5
using Email . NET . EDP . Smtp ;
6
6
using System ;
7
7
11
11
public static class Configurations
12
12
{
13
13
/// <summary>
14
- /// add the Email.NET services & configuration.
14
+ /// add the Email.NET services and configuration.
15
15
/// </summary>
16
16
/// <param name="serviceCollection">the service collection instant</param>
17
17
/// <param name="config">the configuration initializer.</param>
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public async Task<EmailSendingResult> SendAsync(NET.Message message)
36
36
. AddMetaData ( "message_id" , response . MessageId )
37
37
. AddMetaData ( "request_id" , response . ResponseMetadata ? . RequestId ) ;
38
38
39
- if ( ! ( response . ResponseMetadata is null ) && response . ResponseMetadata . Metadata . Any ( ) )
39
+ if ( response . ResponseMetadata is not null && response . ResponseMetadata . Metadata . Any ( ) )
40
40
{
41
41
foreach ( var metaData in response . ResponseMetadata . Metadata )
42
42
result . AddMetaData ( metaData . Key , metaData . Value ) ;
@@ -67,6 +67,11 @@ public partial class AmazonSESEmailDeliveryProvider
67
67
68
68
private readonly AmazonSESEmailDeliveryProviderOptions _options ;
69
69
70
+ /// <summary>
71
+ /// create an instance of <see cref="AmazonSESEmailDeliveryProvider"/>
72
+ /// </summary>
73
+ /// <param name="options">the options instance</param>
74
+ /// <exception cref="ArgumentNullException">the given options instance is null</exception>
70
75
public AmazonSESEmailDeliveryProvider ( AmazonSESEmailDeliveryProviderOptions options )
71
76
{
72
77
if ( options is null )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class AmazonSESEmailDeliveryProviderOptions
21
21
public string AwsSecretAccessKey { get ; set ; }
22
22
23
23
/// <summary>
24
- /// Get or set the AWS session token. this property will be used only if you specified the <seealso cref="AwsSecretAccessKey"/> & <seealso cref="AwsAccessKeyId"/>.
24
+ /// Get or set the AWS session token. this property will be used only if you specified the <seealso cref="AwsSecretAccessKey"/> and <seealso cref="AwsAccessKeyId"/>.
25
25
/// </summary>
26
26
public string AwsSessionToken { get ; set ; }
27
27
Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ public partial class MailKitEmailDeliveryProvider
136
136
137
137
private readonly MailKitEmailDeliveryProviderOptions _options ;
138
138
139
+ /// <summary>
140
+ /// create an instance of <see cref="MailKitEmailDeliveryProvider"/>
141
+ /// </summary>
142
+ /// <param name="options">the edp options instance</param>
143
+ /// <exception cref="ArgumentNullException">if the given provider options is null</exception>
139
144
public MailKitEmailDeliveryProvider ( MailKitEmailDeliveryProviderOptions options )
140
145
{
141
146
if ( options is null )
@@ -239,9 +244,9 @@ public MimeMessage CreateMessage(Message message)
239
244
}
240
245
241
246
/// <summary>
242
- /// add the given list of attachments to the <see cref="MailMessage "/> instance
247
+ /// add the given list of attachments to the <see cref="BodyBuilder "/> instance
243
248
/// </summary>
244
- /// <param name="message">the <see cref="MailMessage "/> instance</param>
249
+ /// <param name="message">the <see cref="BodyBuilder "/> instance</param>
245
250
/// <param name="attachments">the list of attachments to add</param>
246
251
public void SetAttachments ( BodyBuilder message , IEnumerable < NET . Attachment > attachments )
247
252
{
Original file line number Diff line number Diff line change @@ -66,6 +66,11 @@ public partial class MailgunEmailDeliveryProvider
66
66
67
67
private readonly MailgunEmailDeliveryProviderOptions _options ;
68
68
69
+ /// <summary>
70
+ /// create an instance of <see cref="MailgunEmailDeliveryProvider"/>
71
+ /// </summary>
72
+ /// <param name="options">the edp options instance</param>
73
+ /// <exception cref="ArgumentNullException">if the given provider options is null</exception>
69
74
public MailgunEmailDeliveryProvider ( MailgunEmailDeliveryProviderOptions options )
70
75
{
71
76
if ( options is null )
@@ -77,11 +82,10 @@ public MailgunEmailDeliveryProvider(MailgunEmailDeliveryProviderOptions options)
77
82
}
78
83
79
84
/// <summary>
80
- /// create an instance of <see cref="BasicMessage "/> from the given <see cref="Message "/>.
85
+ /// create an instance of <see cref="HttpClient "/> from the given <see cref="HttpClient "/>.
81
86
/// </summary>
82
87
/// <param name="message">the message instance</param>
83
- /// <param name="data">the edp data instance</param>
84
- /// <returns>instance of <see cref="BasicMessage"/></returns>
88
+ /// <returns>instance of <see cref="HttpClient"/></returns>
85
89
public HttpContent CreateMessage ( Message message )
86
90
{
87
91
var content = new MultipartFormDataContent ( ) ;
Original file line number Diff line number Diff line change @@ -54,6 +54,11 @@ public partial class SendgridEmailDeliveryProvider
54
54
55
55
private readonly SendgridEmailDeliveryProviderOptions _options ;
56
56
57
+ /// <summary>
58
+ /// create an instance of <see cref="SendgridEmailDeliveryProvider"/>
59
+ /// </summary>
60
+ /// <param name="options">the edp options instance</param>
61
+ /// <exception cref="ArgumentNullException">if the given provider options is null</exception>
57
62
public SendgridEmailDeliveryProvider ( SendgridEmailDeliveryProviderOptions options )
58
63
{
59
64
if ( options is null )
@@ -104,7 +109,7 @@ private static async Task<EmailSendingResult> BuildResultObjectAsync(Response re
104
109
}
105
110
106
111
/// <summary>
107
- /// create an instance of <see cref="BasicMessage "/> from the given <see cref="Message"/>.
112
+ /// create an instance of <see cref="SendGridMessage "/> from the given <see cref="Message"/>.
108
113
/// </summary>
109
114
/// <param name="message">the message instance</param>
110
115
/// <returns>instance of <see cref="SendGridMessage"/></returns>
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public static EmailServiceFactory UseSocketlabs(this EmailServiceFactory builder
24
24
/// </summary>
25
25
/// <param name="builder">the <see cref="EmailServiceFactory"/> instance.</param>
26
26
/// <param name="config">the configuration builder instance.</param>
27
- /// <returns>instance of <see cref="EmailNetBuilder "/> to enable methods chaining.</returns>
27
+ /// <returns>instance of <see cref="EmailServiceFactory "/> to enable methods chaining.</returns>
28
28
public static EmailServiceFactory UseSocketlabs ( this EmailServiceFactory builder , Action < SocketLabsEmailDeliveryProviderOptions > config )
29
29
{
30
30
// load the configuration
Original file line number Diff line number Diff line change @@ -76,6 +76,11 @@ public partial class SocketLabsEmailDeliveryProvider
76
76
77
77
private readonly SocketLabsEmailDeliveryProviderOptions _options ;
78
78
79
+ /// <summary>
80
+ /// create an instance of <see cref="SocketLabsEmailDeliveryProvider"/>
81
+ /// </summary>
82
+ /// <param name="options">the edp options instance</param>
83
+ /// <exception cref="ArgumentNullException">if the given provider options is null</exception>
79
84
public SocketLabsEmailDeliveryProvider ( SocketLabsEmailDeliveryProviderOptions options )
80
85
{
81
86
if ( options is null )
@@ -127,7 +132,6 @@ private static EmailSendingResult BuildResultObject(SendResponse result)
127
132
/// create an instance of <see cref="BasicMessage"/> from the given <see cref="Message"/>.
128
133
/// </summary>
129
134
/// <param name="message">the message instance</param>
130
- /// <param name="data">the edp data instance</param>
131
135
/// <returns>instance of <see cref="BasicMessage"/></returns>
132
136
public BasicMessage CreateMessage ( Message message )
133
137
{
You can’t perform that action at this time.
0 commit comments