Got adding working again
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user