mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-14 00:47:25 +00:00
Attempt to silence excessive IL warnings
This commit is contained in:
parent
776755d3ab
commit
237f23e965
2 changed files with 4 additions and 0 deletions
|
@ -177,6 +177,7 @@ public sealed class BotConfig {
|
|||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
[MaxLength(ArchiHandler.MaxGamesPlayedConcurrently)]
|
||||
[SwaggerItemsMinMax(MinimumUint = 1, MaximumUint = uint.MaxValue)]
|
||||
[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", Justification = "This is optional, supportive attribute, we don't care if it gets trimmed or not")]
|
||||
public ImmutableList<uint> GamesPlayedWhileIdle { get; private set; } = DefaultGamesPlayedWhileIdle;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
|
@ -239,6 +240,7 @@ public sealed class BotConfig {
|
|||
[MaxLength(SteamParentalCodeLength)]
|
||||
[MinLength(SteamParentalCodeLength)]
|
||||
[SwaggerValidValues(ValidStringValues = new[] { "0" })]
|
||||
[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", Justification = "This is optional, supportive attribute, we don't care if it gets trimmed or not")]
|
||||
public string? SteamParentalCode {
|
||||
get => BackingSteamParentalCode;
|
||||
|
||||
|
@ -261,6 +263,7 @@ public sealed class BotConfig {
|
|||
[JsonProperty]
|
||||
[MaxLength(SteamTradeTokenLength)]
|
||||
[MinLength(SteamTradeTokenLength)]
|
||||
[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", Justification = "This is optional, supportive attribute, we don't care if it gets trimmed or not")]
|
||||
public string? SteamTradeToken { get; private set; } = DefaultSteamTradeToken;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
|
|
|
@ -258,6 +258,7 @@ public sealed class GlobalConfig {
|
|||
|
||||
[JsonProperty]
|
||||
[MaxLength(SteamChatMessage.MaxMessagePrefixBytes / SteamChatMessage.ReservedEscapeMessageBytes)]
|
||||
[UnconditionalSuppressMessage("AssemblyLoadTrimming", "IL2026:RequiresUnreferencedCode", Justification = "This is optional, supportive attribute, we don't care if it gets trimmed or not")]
|
||||
public string? SteamMessagePrefix { get; private set; } = DefaultSteamMessagePrefix;
|
||||
|
||||
[JsonProperty(Required = Required.DisallowNull)]
|
||||
|
|
Loading…
Reference in a new issue