Theseus 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package Theseus --version 0.1.1                
NuGet\Install-Package Theseus -Version 0.1.1                
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.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Theseus --version 0.1.1                
#r "nuget: Theseus, 0.1.1"                
#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.1.1

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

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][https://github.com/ivaylokenov/AspNet.Mvc.TypedRouting] from Ivaylo Kenov.

Thanks

  • blockmath_2048 for the name suggestion.
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 128 4/6/2024
0.4.0 196 11/25/2023
0.3.0 135 11/18/2023
0.2.0 140 10/27/2023
0.1.2 146 10/25/2023
0.1.1 137 10/24/2023
0.1.0 125 10/24/2023