Skip to content

Commit fe2405d

Browse files
eabaAaronontheweb
andauthored
[CS0618][Obsolete] Perserve CreateProducer (#6673)
Co-authored-by: Aaron Stannard <[email protected]>
1 parent 300780c commit fe2405d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/Akka/Actor/Props.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ public Props(Deploy deploy, Type type, IEnumerable<object> args)
162162
/// <param name="type">The type of the actor to create.</param>
163163
/// <param name="args">The arguments needed to create the actor.</param>
164164
/// <exception cref="ArgumentException">This exception is thrown if <paramref name="type" /> is an unknown actor producer.</exception>
165-
public Props(Deploy deploy, Type type, params object[] args)
165+
public Props(Deploy deploy, Type type, params object[] args)
166+
#pragma warning disable CS0618 // Type or member is obsolete
166167
: this(CreateProducer(type, args), deploy, args) // have to preserve the "CreateProducer" call here to preserve backwards compat with Akka.DI.Core
168+
#pragma warning restore CS0618 // Type or member is obsolete
167169
{
168170

169171
}

0 commit comments

Comments
 (0)