fix seriaslizer

This commit is contained in:
Kukks 2024-08-05 14:51:04 +02:00
parent 23aed49a79
commit 0be909957b
No known key found for this signature in database
GPG key ID: 8E5530D9D1C93097

View file

@ -115,7 +115,13 @@ namespace BTCPayServer.Hosting
services.AddBTCPayServer(Configuration, Logs);
services.AddProviderStorage();
services.AddSession();
services.AddSignalR().AddNewtonsoftJsonProtocol();
services.AddSignalR().AddNewtonsoftJsonProtocol(options =>
{
NBitcoin.JsonConverters.Serializer.RegisterFrontConverters(
options.PayloadSerializerSettings);
options.PayloadSerializerSettings.Converters.Add(new BTCPayServer.Lightning.JsonConverters.LightMoneyJsonConverter());
});
services.AddFido2(options =>
{
options.ServerName = "BTCPay Server";