Bundle from worker to grain

This commit is contained in:
2025-09-15 12:56:59 +07:00
parent 77e6ce0789
commit 63bc7bbe59
19 changed files with 2112 additions and 79 deletions

View File

@@ -0,0 +1,19 @@
using Orleans;
namespace Managing.Application.Abstractions.Grains;
/// <summary>
/// Orleans grain interface for Bundle Backtest operations.
/// This is a stateless worker grain that processes bundle backtest requests.
/// Uses the bundle request ID as the primary key (Guid).
/// The grain processes a single bundle request identified by its primary key.
/// </summary>
public interface IBundleBacktestGrain : IGrainWithGuidKey
{
/// <summary>
/// Processes the bundle backtest request for this grain's RequestId
/// The RequestId is determined by the grain's primary key
/// </summary>
/// <returns>Task representing the async operation</returns>
Task ProcessBundleRequestAsync();
}