Skip to content

Commit

Permalink
remove steam
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikus1993 committed May 3, 2024
1 parent f4bbe7e commit 7cc9bb7
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 354 deletions.
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<ItemGroup>
<PackageVersion Include="AutoFixture.Xunit2" Version="4.18.1" />
<PackageVersion Include="Cocona" Version="2.2.0" />
<PackageVersion Include="CsvHelper" Version="31.0.4" />
<PackageVersion Include="CsvHelper" Version="32.0.1" />
<PackageVersion Include="Discord.Net.Webhook" Version="3.14.1" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.60" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.61" />
<PackageVersion Include="Lucene.Net" Version="4.8.0-beta00016" />
<PackageVersion Include="Lucene.Net.Analysis.Common" Version="4.8.0-beta00016" />
<PackageVersion Include="Lucene.Net.QueryParser" Version="4.8.0-beta00016" />
Expand Down Expand Up @@ -36,8 +36,8 @@
<PackageVersion Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.5" />
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageVersion Include="xunit" Version="2.7.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.8">
<PackageVersion Include="xunit" Version="2.8.0" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ public static async Task<IServiceCollection> AddInfrastructure(this IServiceColl
services.AddScoped<IGamesNotifier, DiscordGameNotifier>();
services.AddScoped<IGamesNotifier, MongoDbGamesNotifier>();
services.AddScoped<IGamesParser, XboxStoreGamesParser>();
services.AddHttpClient<IGamesParser, SteamGamesParser>(client =>
{
client.DefaultRequestHeaders.UserAgent.Add(new("Safari", "605.1.15"));
});
return services;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ public IAsyncEnumerable<Game> Filter(IAsyncEnumerable<Game> games, CancellationT
{
return games.Where(x => Contains(x.Title));
}

internal IEnumerable<SteamApp> FilterSteamApps(IEnumerable<SteamApp> games)
{
return games.Where(static x => !string.IsNullOrEmpty(x.Name)).Where(x => Contains(x.Name));
}

private bool Contains(string? title)
{
Expand Down

This file was deleted.

This file was deleted.

12 changes: 6 additions & 6 deletions src/XboxPromotionCheckerBot.App/packages.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
},
"CsvHelper": {
"type": "Direct",
"requested": "[31.0.4, )",
"resolved": "31.0.4",
"contentHash": "m4ikjUAn4XOD1tShxxk4ui42sHxjHdX52P7fPQ9K7tzJkPTEwiCbvEz3k73mTGSSaPTUCOp9VziQC757IqKLew=="
"requested": "[32.0.1, )",
"resolved": "32.0.1",
"contentHash": "1sPpPUlSGCU2BRZmU+NZ2Le/AO2BBQTRZPZvNmfIgrDiVgLC6oD6b9QDFFf5AHhNsU+cAAbGoAcnnWq5a7VPlw=="
},
"Discord.Net.Webhook": {
"type": "Direct",
Expand All @@ -32,9 +32,9 @@
},
"HtmlAgilityPack": {
"type": "Direct",
"requested": "[1.11.60, )",
"resolved": "1.11.60",
"contentHash": "7Uzaf1Mxeuxne33LpTZfSsuRW4sRRX6FWMolOSxXcaAwcKvFevH2E+P6tb4dMWhdyUdBfi0N0yyPZ8hqodfEYg=="
"requested": "[1.11.61, )",
"resolved": "1.11.61",
"contentHash": "hqZASeEFHS9quHvfZSwaULoAJLWkOYVPiQjc3P9J4pQS8vSYzrP3bxe04Vm7vYYuxwbQhq9hCSVvZVLTyRaNaQ=="
},
"Lucene.Net": {
"type": "Direct",
Expand Down
Loading

0 comments on commit 7cc9bb7

Please sign in to comment.