diff --git a/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj b/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj index 2d4bc3f..748ee1e 100644 --- a/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj +++ b/DragonFruit.Link.Tests/DragonFruit.Link.Tests.csproj @@ -6,17 +6,17 @@ - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/DragonFruit.Link/DragonFruit.Link.csproj b/DragonFruit.Link/DragonFruit.Link.csproj index 5bc0f5b..51ef89b 100644 --- a/DragonFruit.Link/DragonFruit.Link.csproj +++ b/DragonFruit.Link/DragonFruit.Link.csproj @@ -19,8 +19,8 @@ - - + + diff --git a/DragonFruit.Link/SteamApiRequest.cs b/DragonFruit.Link/SteamApiRequest.cs index 0af8994..0e5a5d9 100644 --- a/DragonFruit.Link/SteamApiRequest.cs +++ b/DragonFruit.Link/SteamApiRequest.cs @@ -4,6 +4,7 @@ using System; using DragonFruit.Data; using DragonFruit.Data.Parameters; +using DragonFruit.Data.Requests; using DragonFruit.Link.Exceptions; using Newtonsoft.Json; @@ -12,7 +13,7 @@ namespace DragonFruit.Link { [JsonObject(MemberSerialization.OptIn)] - public abstract class SteamApiRequest : ApiRequest + public abstract class SteamApiRequest : ApiRequest, IRequestExecutingCallback { protected override Methods Method => Methods.Get; protected override bool RequireAuth => false; // this only checks headers, ours is in the query @@ -33,7 +34,7 @@ public abstract class SteamApiRequest : ApiRequest [QueryParameter("format")] protected string OutputFormat => "json"; - protected override void OnRequestExecuting(ApiClient client) + public void OnRequestExecuting(ApiClient client) { if (RequireApiKey && string.IsNullOrEmpty(ApiKey)) {