Got adding working again

This commit is contained in:
TheXamlGuy
2024-05-19 22:21:18 +01:00
parent 72a37c7275
commit 1190303044
5 changed files with 36 additions and 26 deletions
+24 -5
View File
@@ -1,12 +1,31 @@
namespace Toolkit.Foundation;
public record AggerateEventArgs<TValue> :
public record Aggerate
{
public static AggerateEventArgs<TValue, TOptions> With<TValue, TOptions>(TOptions options) where TOptions : class
{
return new AggerateEventArgs<TValue, TOptions>(options);
}
public static AggerateEventArgs<TValue> With<TValue>()
{
return new AggerateEventArgs<TValue>();
}
}
public record AggerateEventArgs<TValue, TOptions>(TOptions? Options = null) :
IAggerate
where TOptions : class
{
public object? Key { get; init; }
public AggerateMode Mode { get; init; }
}
public record AggerateEventArgs<TValue> :
IAggerate
{
public object? Key { get; init; }
public static Aggerate<TValue, TOptions> With<TOptions>(TOptions options) where TOptions : class
{
return new Aggerate<TValue, TOptions>(options);
}
public AggerateMode Mode { get; init; }
}