We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 069d50b + 2b32e9d commit 2fc8cb9Copy full SHA for 2fc8cb9
1 file changed
Assets/CoreAiUnity/Runtime/Source/Features/Audit/AuditLogWriter.cs
@@ -9,6 +9,7 @@
9
using Newtonsoft.Json;
10
using Newtonsoft.Json.Linq;
11
using UnityEngine;
12
+using VContainer;
13
14
namespace CoreAI.Features.Audit
15
{
@@ -48,6 +49,9 @@ internal void RotateForTesting()
48
49
RotateNow();
50
}
51
52
+ // WHY [Inject]: без атрибута VContainer.SourceGenerator выбирает конструктор с максимумом
53
+ // параметров — internal AuditLogWriter(string) — и падает на резолве System.String.
54
+ [Inject]
55
public AuditLogWriter()
56
: this(Path.Combine(Application.persistentDataPath, CoreAiPersistentPaths.RootFolderName, "Audit"))
57
0 commit comments