diff --git a/ArchiSteamFarm/IPC/Integration/ApiAuthenticationMiddleware.cs b/ArchiSteamFarm/IPC/Integration/ApiAuthenticationMiddleware.cs index 7376fcd97..a1f71cba7 100644 --- a/ArchiSteamFarm/IPC/Integration/ApiAuthenticationMiddleware.cs +++ b/ArchiSteamFarm/IPC/Integration/ApiAuthenticationMiddleware.cs @@ -72,7 +72,7 @@ namespace ArchiSteamFarm.IPC.Integration { } } - [PublicAPI] + [UsedImplicitly] #if NETFRAMEWORK public async Task InvokeAsync(HttpContext context, IOptions jsonOptions) { #else diff --git a/ArchiSteamFarm/NLog/Targets/HistoryTarget.cs b/ArchiSteamFarm/NLog/Targets/HistoryTarget.cs index c430d4535..4248dd746 100644 --- a/ArchiSteamFarm/NLog/Targets/HistoryTarget.cs +++ b/ArchiSteamFarm/NLog/Targets/HistoryTarget.cs @@ -39,7 +39,7 @@ namespace ArchiSteamFarm.NLog.Targets { private readonly FixedSizeConcurrentQueue HistoryQueue = new(DefaultMaxCount); // This is NLog config property, it must have public get() and set() capabilities - [PublicAPI] + [UsedImplicitly] public byte MaxCount { get => HistoryQueue.MaxCount; @@ -56,7 +56,7 @@ namespace ArchiSteamFarm.NLog.Targets { // This parameter-less constructor is intentionally public, as NLog uses it for creating targets // It must stay like this as we want to have our targets defined in our NLog.config - [PublicAPI] + [UsedImplicitly] public HistoryTarget() { } internal HistoryTarget(string name) : this() => Name = name; diff --git a/ArchiSteamFarm/NLog/Targets/SteamTarget.cs b/ArchiSteamFarm/NLog/Targets/SteamTarget.cs index 5166d705c..f36916230 100644 --- a/ArchiSteamFarm/NLog/Targets/SteamTarget.cs +++ b/ArchiSteamFarm/NLog/Targets/SteamTarget.cs @@ -40,16 +40,16 @@ namespace ArchiSteamFarm.NLog.Targets { internal const string TargetName = "Steam"; // This is NLog config property, it must have public get() and set() capabilities - [PublicAPI] + [UsedImplicitly] public Layout? BotName { get; set; } // This is NLog config property, it must have public get() and set() capabilities - [PublicAPI] + [UsedImplicitly] public ulong ChatGroupID { get; set; } // This is NLog config property, it must have public get() and set() capabilities - [PublicAPI] [RequiredParameter] + [UsedImplicitly] public ulong SteamID { get; set; } // This parameter-less constructor is intentionally public, as NLog uses it for creating targets