Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jan 3, 2025
1 parent 71b79d6 commit 410931f
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 1 deletion.
17 changes: 17 additions & 0 deletions LinkValidator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ Microsoft Visual Studio Solution File, Format Version 12.00
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{30006747-5ED8-4FAE-8444-C267675556C7}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
build.ps1 = build.ps1
README.md = README.md
RELEASE_NOTES.md = RELEASE_NOTES.md
src\Directory.Build.props = src\Directory.Build.props
src\Directory.Packages.props = src\Directory.Packages.props
src\NuGet.config = src\NuGet.config
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LinkValidator", "src\LinkValidator\LinkValidator.csproj", "{735F5CB0-2BD5-4BE4-86FF-794EF5519E78}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -13,4 +24,10 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{735F5CB0-2BD5-4BE4-86FF-794EF5519E78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{735F5CB0-2BD5-4BE4-86FF-794EF5519E78}.Debug|Any CPU.Build.0 = Debug|Any CPU
{735F5CB0-2BD5-4BE4-86FF-794EF5519E78}.Release|Any CPU.ActiveCfg = Release|Any CPU
{735F5CB0-2BD5-4BE4-86FF-794EF5519E78}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
4 changes: 3 additions & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>

<PackageVersion Include="Akka" Version="1.5.33" />
<PackageVersion Include="HtmlAgilityPack" Version="1.11.72" />
<PackageVersion Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
</ItemGroup>
</Project>
12 changes: 12 additions & 0 deletions src/LinkValidator/Actors/CrawlerActor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System.Collections.Immutable;

namespace LinkValidator.Actors;

public record CrawlUrl(string Url);
public record PageCrawled(string Url, int StatusCode, IReadOnlyCollection<string> Links);
public record CrawlComplete(ImmutableDictionary<string, (int StatusCode, string Path)> Results);

public class CrawlerActor
{

}
11 changes: 11 additions & 0 deletions src/LinkValidator/Actors/IndexerActor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using Akka.Actor;

namespace LinkValidator.Actors;

public sealed class IndexerActor : UntypedActor
{
protected override void OnReceive(object message)
{

}
}
16 changes: 16 additions & 0 deletions src/LinkValidator/LinkValidator.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Akka" />
<PackageReference Include="HtmlAgilityPack" />
<PackageReference Include="System.CommandLine" />
</ItemGroup>

</Project>
9 changes: 9 additions & 0 deletions src/LinkValidator/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace LinkValidator;

class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}

0 comments on commit 410931f

Please sign in to comment.