From b2c859e63261251e0f7d79297d823d34ce19dd4b Mon Sep 17 00:00:00 2001 From: Ebere Abanonu Date: Tue, 25 Apr 2023 13:42:40 +0100 Subject: [PATCH] [CS0618][Obsolete] Perserve `CreateProducer` --- src/core/Akka/Actor/Props.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Akka/Actor/Props.cs b/src/core/Akka/Actor/Props.cs index 69c81bedc41..e6381bdc3d5 100644 --- a/src/core/Akka/Actor/Props.cs +++ b/src/core/Akka/Actor/Props.cs @@ -162,8 +162,10 @@ public Props(Deploy deploy, Type type, IEnumerable args) /// The type of the actor to create. /// The arguments needed to create the actor. /// This exception is thrown if is an unknown actor producer. - public Props(Deploy deploy, Type type, params object[] args) + public Props(Deploy deploy, Type type, params object[] args) +#pragma warning disable CS0618 // Type or member is obsolete : this(CreateProducer(type, args), deploy, args) // have to preserve the "CreateProducer" call here to preserve backwards compat with Akka.DI.Core +#pragma warning restore CS0618 // Type or member is obsolete { }