Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CS0618][Obsolete] Perserve CreateProducer #6673

Merged
merged 7 commits into from
May 16, 2023
4 changes: 3 additions & 1 deletion src/core/Akka/Actor/Props.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ public Props(Deploy deploy, Type type, IEnumerable<object> args)
/// <param name="type">The type of the actor to create.</param>
/// <param name="args">The arguments needed to create the actor.</param>
/// <exception cref="ArgumentException">This exception is thrown if <paramref name="type" /> is an unknown actor producer.</exception>
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
{

}
Expand Down