Skip to content

Commit

Permalink
[CS0618][Obsolete] Perserve CreateProducer (#6673)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Stannard <aaron@petabridge.com>
  • Loading branch information
eaba and Aaronontheweb authored May 16, 2023
1 parent 300780c commit fe2405d
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit fe2405d

Please sign in to comment.