Add genetic grain

This commit is contained in:
2025-09-17 17:35:53 +07:00
parent 3e5b215640
commit 900405b3de
7 changed files with 161 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
using Orleans;
using Orleans.Concurrency;
namespace Managing.Application.Abstractions.Grains;
@@ -15,5 +16,6 @@ public interface IBundleBacktestGrain : IGrainWithGuidKey
/// The RequestId is determined by the grain's primary key
/// </summary>
/// <returns>Task representing the async operation</returns>
[OneWay]
Task ProcessBundleRequestAsync();
}
}

View File

@@ -0,0 +1,19 @@
using Orleans;
using Orleans.Concurrency;
namespace Managing.Application.Abstractions.Grains;
/// <summary>
/// Orleans grain interface for Genetic Backtest operations.
/// Uses the genetic request ID as the primary key (string).
/// The grain processes a single genetic request identified by its primary key.
/// </summary>
public interface IGeneticBacktestGrain : IGrainWithStringKey
{
/// <summary>
/// Processes the genetic backtest request for this grain's RequestId.
/// The RequestId is determined by the grain's primary key.
/// </summary>
[OneWay]
Task ProcessGeneticRequestAsync();
}