Skip to content

Commit dc8f405

Browse files
author
Ruben Bisharyan
committed
Comment
1 parent 2317479 commit dc8f405

File tree

1 file changed

+60
-47
lines changed

1 file changed

+60
-47
lines changed

test/Communicator.Demo/Program.cs

Lines changed: 60 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,66 @@
88
var builder = WebApplication.CreateBuilder(args);
99

1010
builder.AddCommunicator();
11-
builder.AddCommunicator(options =>
12-
{
13-
options.SmsFake = false;
14-
options.SmsConfigurations = new Dictionary<string, SmsConfiguration>
15-
{
16-
{
17-
"GeneralSender", new SmsConfiguration
18-
{
19-
Provider = "Dexatel",
20-
From = "sender_name",
21-
Properties = new Dictionary<string, string>
22-
{
23-
{ "X-Dexatel-Key", "key" }
24-
},
25-
TimeoutMs = 10000
26-
}
27-
}
28-
};
29-
options.EmailFake = false;
30-
options.EmailConfigurations = new Dictionary<string, EmailConfiguration>
31-
{
32-
{
33-
"GeneralSender", new EmailConfiguration
34-
{
35-
SmtpServer = "smtp-mail.outlook.com",
36-
SmtpPort = 587, // 587
37-
SmtpUsername = "[email protected]",
38-
SmtpPassword = "rbmpbzsytkvqfzdv",
39-
SenderEmail = "[email protected]",
40-
UseSsl = false, // false
41-
TimeoutMs = 10000
42-
}
43-
},
44-
{
45-
"TransactionalSender", new EmailConfiguration
46-
{
47-
SmtpServer = "smtp.gmail.com",
48-
SmtpPort = 465, // 587
49-
SmtpUsername = "[email protected]",
50-
SmtpPassword = "uqihfffvqfngeczq",
51-
SenderEmail = "[email protected]",
52-
UseSsl = true, // false
53-
TimeoutMs = 10000
54-
}
55-
}
56-
};
57-
});
11+
// builder.AddCommunicator(options =>
12+
// {
13+
// options.SmsFake = false;
14+
// options.SmsConfigurations = new Dictionary<string, SmsConfiguration>
15+
// {
16+
// {
17+
// "GeneralSender", new SmsConfiguration
18+
// {
19+
// Provider = "Dexatel",
20+
// From = "sender_name",
21+
// Properties = new Dictionary<string, string>
22+
// {
23+
// { "X-Dexatel-Key", "key" }
24+
// },
25+
// TimeoutMs = 10000
26+
// }
27+
// },
28+
// {
29+
// "TransactionalSender", new SmsConfiguration
30+
// {
31+
// Provider = "Twilio",
32+
// From = "sender_number",
33+
// Properties = new Dictionary<string, string>
34+
// {
35+
// { "SID", "key" },
36+
// { "AUTH_TOKEN", "token" }
37+
// },
38+
// TimeoutMs = 10000
39+
// }
40+
// }
41+
// };
42+
// options.EmailFake = false;
43+
// options.EmailConfigurations = new Dictionary<string, EmailConfiguration>
44+
// {
45+
// {
46+
// "GeneralSender2", new EmailConfiguration
47+
// {
48+
// SmtpServer = "smtp.test.com",
49+
// SmtpPort = 465, // 587
50+
// SmtpUsername = "test",
51+
// SmtpPassword = "test123",
52+
// SenderEmail = "[email protected]",
53+
// UseSsl = true, // false
54+
// TimeoutMs = 10000
55+
// }
56+
// },
57+
// {
58+
// "TransactionalSender", new EmailConfiguration
59+
// {
60+
// SmtpServer = "smtp.gmail.com",
61+
// SmtpPort = 465, // 587
62+
// SmtpUsername = "vazgen",
63+
// SmtpPassword = "vazgen123",
64+
// SenderEmail = "[email protected]",
65+
// UseSsl = true, // false
66+
// TimeoutMs = 10000
67+
// }
68+
// }
69+
// };
70+
// });
5871

5972
builder.Services.AddEndpointsApiExplorer();
6073
builder.Services.AddSwaggerGen();

0 commit comments

Comments
 (0)