Theseus 0.5.0

dotnet add package Theseus --version 0.5.0                
NuGet\Install-Package Theseus -Version 0.5.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Theseus" Version="0.5.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Theseus --version 0.5.0                
#r "nuget: Theseus, 0.5.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Theseus as a Cake Addin
#addin nuget:?package=Theseus&version=0.5.0

// Install Theseus as a Cake Tool
#tool nuget:?package=Theseus&version=0.5.0                

Theseus

IUrlHelper extensions to point at a controller method to generate links.

Example:

// Regular IUrlHelper:
string aboutUrl = Url.Action("About", "Home");
string buyUrl = Url.Action("Buy", "Products", new { id = 17, color = "red" });

// Theseus:
string aboutUrl = Url.To<HomeController>(y => y.About());
string buyUrl = Url.To<ProductsController>(y => y.Buy(17, "red"));

This library uses EpsilonEvaluator to evaluate the route parameters from the method arguments. Most expressions should be evaluated without compilation and compiled expressions are not cached.

Inspired by AspNet.Mvc.TypedRouting from Ivaylo Kenov.

Thanks

  • blockmath_2048 for the name suggestion.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.0 133 4/6/2024
0.4.0 201 11/25/2023
0.3.0 140 11/18/2023
0.2.0 145 10/27/2023
0.1.2 151 10/25/2023
0.1.1 142 10/24/2023
0.1.0 129 10/24/2023