diff --git a/src/clustering/sharding-sqlserver/SqlSharding.WebApp/Pages/Product.cshtml.cs b/src/clustering/sharding-sqlserver/SqlSharding.WebApp/Pages/Product.cshtml.cs index f414340..3debd75 100644 --- a/src/clustering/sharding-sqlserver/SqlSharding.WebApp/Pages/Product.cshtml.cs +++ b/src/clustering/sharding-sqlserver/SqlSharding.WebApp/Pages/Product.cshtml.cs @@ -14,9 +14,9 @@ public class Product : PageModel { private readonly IActorRef _productActor; - public Product(ActorRegistry registry) + public Product(IRequiredActor productActor) { - _productActor = registry.Get(); + _productActor = productActor.ActorRef; } [BindProperty(SupportsGet = true)]