We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fbfb72 commit 4ef4358Copy full SHA for 4ef4358
src/Whaally.Domain.Infrastructure.OrleansHost/OrleansAggregateProviderFactory.cs src/Whaally.Domain.Infrastructure.OrleansHost/OrleansAggregateHandlerFactory.cs
@@ -12,6 +12,11 @@ public OrleansAggregateHandlerFactory(
12
_clusterClient = clusterClient;
13
}
14
15
+ IAggregateHandler IAggregateHandlerFactory.Instantiate(Type aggregateType, string id)
16
+ => (GetType()
17
+ .GetMethod(nameof(IAggregateHandlerFactory.Instantiate))!
18
+ .MakeGenericMethod(aggregateType)
19
+ .Invoke(this, [id]) as IAggregateHandler)!;
20
21
IAggregateHandler<TAggregate> IAggregateHandlerFactory.Instantiate<TAggregate>(string id)
22
=> _clusterClient.GetGrain<IAggregateHandlerGrain<TAggregate>>(Guid.Parse(id));
0 commit comments