Got at least one data fetching method working; turns out, we can't use a patched LogicStack to get the data

This commit is contained in:
2026-01-14 22:11:11 +01:00
parent 40a8431464
commit 3f7122d30a
350 changed files with 41444 additions and 119 deletions

View File

@@ -0,0 +1,26 @@
using System;
namespace EmbedIO.Routing
{
/// <summary>
/// Provides extension methods for <see cref="RoutingModule"/>.
/// </summary>
public static partial class RoutingModuleExtensions
{
/// <summary>
/// <para>Adds handlers, associating them with HTTP method / route pairs by means
/// of <see cref="RouteAttribute">Route</see> attributes.</para>
/// <para>See <see cref="RouteVerbResolverCollection.AddFrom(object)"/> for further information.</para>
/// </summary>
/// <param name="this">The <see cref="RoutingModule"/> on which this method is called.</param>
/// <param name="target">Where to look for compatible handlers.</param>
/// <returns><paramref name="this"/> with handlers added.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="ArgumentNullException"><paramref name="target"/> is <see langword="null"/>.</exception>
public static RoutingModule WithHandlersFrom(this RoutingModule @this, object target)
{
@this.AddFrom(target);
return @this;
}
}
}