From bc40908df8bdf15071016bc9176670a23854a96d Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Mon, 15 Apr 2024 07:53:53 -0500 Subject: [PATCH] Use `IRequiredActor` instead of `ActorRegistry` --- .../SqlSharding.WebApp/Pages/Product.cshtml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)]