diff --git a/Directory.Packages.props b/Directory.Packages.props
index 8e1341f23..4976ed8e6 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -6,8 +6,31 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -15,36 +38,15 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
@@ -54,18 +56,16 @@
-
-
-
+
+
+
+
-
-
+
-
+
-
-
diff --git a/src/PostIt/Directory.Packages.props b/src/PostIt/Directory.Packages.props
index d3bd1a99b..4086e468a 100644
--- a/src/PostIt/Directory.Packages.props
+++ b/src/PostIt/Directory.Packages.props
@@ -23,14 +23,14 @@
-
-
+
+
-
+
@@ -40,7 +40,7 @@
-
-
+
+
-
\ No newline at end of file
+
diff --git a/src/PostIt/PostIt.Android/PostIt.Android.csproj b/src/PostIt/PostIt.Android/PostIt.Android.csproj
index b63aef1b7..a6bbc831f 100644
--- a/src/PostIt/PostIt.Android/PostIt.Android.csproj
+++ b/src/PostIt/PostIt.Android/PostIt.Android.csproj
@@ -1,7 +1,7 @@
Exe
- net10.0-android
+ net11.0-android
23
enable
fr.pschneider.postit
diff --git a/src/PostIt/PostIt.Browser/PostIt.Browser.csproj b/src/PostIt/PostIt.Browser/PostIt.Browser.csproj
index 6d5f21f82..ca58ea721 100644
--- a/src/PostIt/PostIt.Browser/PostIt.Browser.csproj
+++ b/src/PostIt/PostIt.Browser/PostIt.Browser.csproj
@@ -1,6 +1,6 @@
- net10.0-browser
+ net11.0-browser
Exe
true
enable
diff --git a/src/PostIt/PostIt.Desktop/PostIt.Desktop.csproj b/src/PostIt/PostIt.Desktop/PostIt.Desktop.csproj
index b30430df5..e91bae534 100644
--- a/src/PostIt/PostIt.Desktop/PostIt.Desktop.csproj
+++ b/src/PostIt/PostIt.Desktop/PostIt.Desktop.csproj
@@ -3,7 +3,7 @@
WinExe
- net10.0
+ net11.0
enable
1.1.0.0
1.1.0.0
@@ -25,4 +25,4 @@
-
\ No newline at end of file
+
diff --git a/src/PostIt/PostIt.Tests/PostIt.Tests.csproj b/src/PostIt/PostIt.Tests/PostIt.Tests.csproj
index 52ea689ba..f64673d85 100644
--- a/src/PostIt/PostIt.Tests/PostIt.Tests.csproj
+++ b/src/PostIt/PostIt.Tests/PostIt.Tests.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
enable
false
@@ -33,4 +33,4 @@
-
\ No newline at end of file
+
diff --git a/src/PostIt/PostIt/PostIt.csproj b/src/PostIt/PostIt/PostIt.csproj
index 5197956df..c5c715747 100644
--- a/src/PostIt/PostIt/PostIt.csproj
+++ b/src/PostIt/PostIt/PostIt.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
latest
1.1.0.0
@@ -66,4 +66,4 @@
-
\ No newline at end of file
+
diff --git a/src/Yavsc.Abstract/Yavsc.Abstract.csproj b/src/Yavsc.Abstract/Yavsc.Abstract.csproj
index cd9e44283..b8e5e8c20 100644
--- a/src/Yavsc.Abstract/Yavsc.Abstract.csproj
+++ b/src/Yavsc.Abstract/Yavsc.Abstract.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
A shared model for a little client/server app, dealing about establishing some contract, between some human client and provider.
@@ -14,4 +14,4 @@
1.1.0-feat-calls.1+472.Branch.feat-calls.Sha.d8200cb98ddef152313ef1f102b866c50f107cbd
1.1.0-feat-calls.1
-
\ No newline at end of file
+
diff --git a/src/Yavsc.Api.Client/Yavsc.Api.Client.csproj b/src/Yavsc.Api.Client/Yavsc.Api.Client.csproj
index 377d7f79c..b1a8391ec 100644
--- a/src/Yavsc.Api.Client/Yavsc.Api.Client.csproj
+++ b/src/Yavsc.Api.Client/Yavsc.Api.Client.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
Yavsc.Api.Client
Yavsc.Api.Client
@@ -23,4 +23,4 @@
-
\ No newline at end of file
+
diff --git a/src/Yavsc.Api/Yavsc.Api.csproj b/src/Yavsc.Api/Yavsc.Api.csproj
index fdde51821..36db5c29f 100644
--- a/src/Yavsc.Api/Yavsc.Api.csproj
+++ b/src/Yavsc.Api/Yavsc.Api.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
1c73094f-959f-4211-b1a1-6a69b236c283
Yavsc.Api
@@ -16,4 +16,4 @@
-
\ No newline at end of file
+
diff --git a/src/Yavsc.Blogs/Yavsc.Blogs.csproj b/src/Yavsc.Blogs/Yavsc.Blogs.csproj
index a4896ec80..fe2fa9bdc 100644
--- a/src/Yavsc.Blogs/Yavsc.Blogs.csproj
+++ b/src/Yavsc.Blogs/Yavsc.Blogs.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
1c73094f-959f-4211-b1a1-6a69b236c283
Yavsc.Blogs
@@ -15,4 +15,4 @@
-
\ No newline at end of file
+
diff --git a/src/Yavsc.Org/Yavsc.Org.csproj b/src/Yavsc.Org/Yavsc.Org.csproj
index 5d5f1efe5..52be4fcad 100644
--- a/src/Yavsc.Org/Yavsc.Org.csproj
+++ b/src/Yavsc.Org/Yavsc.Org.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
WTFPL
76e56fc2-1619-40d8-8393-365258b7a21d
@@ -47,4 +47,4 @@
-
\ No newline at end of file
+
diff --git a/src/Yavsc.Server/Services/MailKitSmtpClient.cs b/src/Yavsc.Server/Services/MailKitSmtpClient.cs
index f8bfb59c6..80e23f62e 100644
--- a/src/Yavsc.Server/Services/MailKitSmtpClient.cs
+++ b/src/Yavsc.Server/Services/MailKitSmtpClient.cs
@@ -1,4 +1,5 @@
using MailKit.Security;
+using MailKit.Net;
using MimeKit;
using Yavsc.Interfaces;
@@ -13,10 +14,12 @@ namespace Yavsc.Services
public sealed class MailKitSmtpClient : ISmtpClient
{
private readonly MailKit.Net.Smtp.SmtpClient _client;
+ private readonly FormatOptions _Options;
public MailKitSmtpClient()
{
_client = new MailKit.Net.Smtp.SmtpClient();
+ _Options = new FormatOptions();
}
public int Timeout
@@ -37,7 +40,8 @@ namespace Yavsc.Services
public Task SendAsync(MimeMessage message, CancellationToken cancellationToken = default)
{
- return _client.SendAsync(message, cancellationToken);
+ MailKit.SendRequest request = new MailKit.SendRequest(message);
+ return _client.SendAsync(_Options, request, cancellationToken);
}
public void Disconnect(bool quit)
diff --git a/src/Yavsc.Server/Services/MailSender.cs b/src/Yavsc.Server/Services/MailSender.cs
index 1a678a549..7eabecd94 100644
--- a/src/Yavsc.Server/Services/MailSender.cs
+++ b/src/Yavsc.Server/Services/MailSender.cs
@@ -120,8 +120,9 @@ namespace Yavsc.Services
};
msg.Subject = subject;
+ var domain = new Uri(siteSettings.Authority).Host;
msg.MessageId = MimeKit.Utils.MimeUtils.GenerateMessageId(
- siteSettings.Authority
+ domain
);
using Yavsc.Interfaces.ISmtpClient sc = _smtpClientFactory.CreateClient();
{
diff --git a/src/Yavsc.Server/Yavsc.Server.csproj b/src/Yavsc.Server/Yavsc.Server.csproj
index ce05dc749..4264c0671 100644
--- a/src/Yavsc.Server/Yavsc.Server.csproj
+++ b/src/Yavsc.Server/Yavsc.Server.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
53bd70e8-ff81-497a-847f-a15fd8ea7a09
Yavsc.Server
@@ -40,4 +40,4 @@
-
\ No newline at end of file
+
diff --git a/src/cli/cli.csproj b/src/cli/cli.csproj
index a866f0b24..191d87268 100644
--- a/src/cli/cli.csproj
+++ b/src/cli/cli.csproj
@@ -1,7 +1,7 @@
Exe
- net10.0
+ net11.0
enable
Yavsc.cli
true
@@ -22,4 +22,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/Yavsc.Api.Tests/Yavsc.Api.Tests.csproj b/src/test/Yavsc.Api.Tests/Yavsc.Api.Tests.csproj
index 5e62deede..8e913c9b9 100644
--- a/src/test/Yavsc.Api.Tests/Yavsc.Api.Tests.csproj
+++ b/src/test/Yavsc.Api.Tests/Yavsc.Api.Tests.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
enable
false
@@ -30,4 +30,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/Yavsc.Blogs.Tests/Yavsc.Blogs.Tests.csproj b/src/test/Yavsc.Blogs.Tests/Yavsc.Blogs.Tests.csproj
index 6ad98aa69..87d26ef4e 100644
--- a/src/test/Yavsc.Blogs.Tests/Yavsc.Blogs.Tests.csproj
+++ b/src/test/Yavsc.Blogs.Tests/Yavsc.Blogs.Tests.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
enable
false
@@ -32,4 +32,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/Yavsc.Org.Tests/Yavsc.Org.Tests.csproj b/src/test/Yavsc.Org.Tests/Yavsc.Org.Tests.csproj
index 7897458c8..6acda9da7 100644
--- a/src/test/Yavsc.Org.Tests/Yavsc.Org.Tests.csproj
+++ b/src/test/Yavsc.Org.Tests/Yavsc.Org.Tests.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
enable
false
@@ -88,4 +88,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/Yavsc.Server.Tests/ResourceSubscriptionTests.cs b/src/test/Yavsc.Server.Tests/ResourceSubscriptionTests.cs
index 327878043..ac72d3ed4 100644
--- a/src/test/Yavsc.Server.Tests/ResourceSubscriptionTests.cs
+++ b/src/test/Yavsc.Server.Tests/ResourceSubscriptionTests.cs
@@ -2,6 +2,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
+using System.Globalization;
using System.Text.Json;
using Yavsc.Models;
using Yavsc.Models.Payment;
@@ -86,11 +87,12 @@ public sealed class ResourceSubscriptionTests
=> Assert.Equal(grant, ResourceUsageCredit.MonthlyGrant(gross, previous, allowance));
[Theory]
- [InlineData("Premium", 2.4, 5)]
- [InlineData("Discovery", 1.2, 2)]
+ [InlineData("Premium", "2.4", 5)]
+ [InlineData("Discovery", "1.2", 2)]
public async Task Paid_disk_quota_uses_standard_reference_and_survives_cancellation_until_anniversary(
- string pack, decimal amount, long multiplier)
+ string pack, string amountText, long multiplier)
{
+ var amount = decimal.Parse(amountText, NumberStyles.Number, CultureInfo.InvariantCulture);
var clock = new Clock();
var gateway = new Gateway();
using var provider = Provider(clock, gateway);
@@ -120,12 +122,13 @@ public sealed class ResourceSubscriptionTests
}
[Theory]
- [InlineData("Discovery", "PENDING", 1.2)]
- [InlineData("Discovery", "FAILED", 1.2)]
- [InlineData("Premium", "PENDING", 2.4)]
- [InlineData("Premium", "FAILED", 2.4)]
- public async Task Unpaid_subscriptions_do_not_grant_disk_bonus(string pack, string state, decimal amount)
+ [InlineData("Discovery", "PENDING", "1.2")]
+ [InlineData("Discovery", "FAILED", "1.2")]
+ [InlineData("Premium", "PENDING", "2.4")]
+ [InlineData("Premium", "FAILED", "2.4")]
+ public async Task Unpaid_subscriptions_do_not_grant_disk_bonus(string pack, string state, string amountText)
{
+ var amount = decimal.Parse(amountText, NumberStyles.Number, CultureInfo.InvariantCulture);
var clock = new Clock();
var gateway = new Gateway();
using var provider = Provider(clock, gateway);
@@ -141,10 +144,11 @@ public sealed class ResourceSubscriptionTests
}
[Theory]
- [InlineData("Premium", 2.4)]
- [InlineData("Discovery", 1.2)]
- public async Task Refund_revokes_disk_bonus_but_not_another_paid_period(string pack, decimal amount)
+ [InlineData("Premium", "2.4")]
+ [InlineData("Discovery", "1.2")]
+ public async Task Refund_revokes_disk_bonus_but_not_another_paid_period(string pack, string amountText)
{
+ var amount = decimal.Parse(amountText, NumberStyles.Number, CultureInfo.InvariantCulture);
var clock = new Clock();
var gateway = new Gateway();
using var provider = Provider(clock, gateway);
@@ -190,11 +194,12 @@ public sealed class ResourceSubscriptionTests
}
[Theory]
- [InlineData("Discovery", 1.2, 1000, 3000)]
- [InlineData("Premium", 2.4, 3000, 1000)]
+ [InlineData("Discovery", "1.2", 1000, 3000)]
+ [InlineData("Premium", "2.4", 3000, 1000)]
public async Task Current_backend_defaults_give_one_or_three_thousand_monthly_points(
- string pack, decimal amount, decimal monthlyPoints, decimal remainingUsage)
+ string pack, string amountText, decimal monthlyPoints, decimal remainingUsage)
{
+ var amount = decimal.Parse(amountText, NumberStyles.Number, CultureInfo.InvariantCulture);
var clock = new Clock();
var gateway = new Gateway();
using var provider = Provider(clock, gateway, useBackendDefaults: true);
diff --git a/src/test/Yavsc.Server.Tests/Yavsc.Server.Tests.csproj b/src/test/Yavsc.Server.Tests/Yavsc.Server.Tests.csproj
index 697e16dc7..f72a54ce4 100644
--- a/src/test/Yavsc.Server.Tests/Yavsc.Server.Tests.csproj
+++ b/src/test/Yavsc.Server.Tests/Yavsc.Server.Tests.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
enable
false
@@ -29,4 +29,4 @@
-
\ No newline at end of file
+
diff --git a/src/test/Yavsc.Tests.Shared/Yavsc.Tests.Shared.csproj b/src/test/Yavsc.Tests.Shared/Yavsc.Tests.Shared.csproj
index 491380428..8ff4b2993 100644
--- a/src/test/Yavsc.Tests.Shared/Yavsc.Tests.Shared.csproj
+++ b/src/test/Yavsc.Tests.Shared/Yavsc.Tests.Shared.csproj
@@ -1,6 +1,6 @@
- net10.0
+ net11.0
enable
enable
false
@@ -26,4 +26,4 @@
-
\ No newline at end of file
+