Skip to content

Commit

Permalink
[Obsolete] warning disable CS0618 (#6646)
Browse files Browse the repository at this point in the history
  • Loading branch information
eaba committed Apr 12, 2023
1 parent fdeedb8 commit b1f6e2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Akka.TestKit/TestProbe.cs
Expand Up @@ -127,7 +127,9 @@ ISurrogate ISurrogated.ToSurrogate(ActorSystem system)

IActorRefProvider IInternalActorRef.Provider { get { return ((IInternalActorRef)TestActor).Provider; } }

#pragma warning disable CS0618 // Type or member is obsolete
bool IInternalActorRef.IsTerminated { get { return ((IInternalActorRef)TestActor).IsTerminated; } }
#pragma warning restore CS0618 // Type or member is obsolete

IActorRef IInternalActorRef.GetChild(IReadOnlyList<string> name)
{
Expand Down
2 changes: 2 additions & 0 deletions src/core/Akka/Dispatch/AbstractDispatcher.cs
Expand Up @@ -389,7 +389,9 @@ internal static void PrintActors()
Console.WriteLine("{0} inhabitants {1}", dispatcher, dispatcher.Inhabitants);
foreach (var actor in a)
{
#pragma warning disable CS0618 // Type or member is obsolete
var status = actor.IsTerminated ? "(terminated)" : "(active)";
#pragma warning restore CS0618 // Type or member is obsolete
var messages = actor is ActorRefWithCell
? " " + actor.AsInstanceOf<ActorRefWithCell>().Underlying.NumberOfMessages + " messages"
: " " + actor.GetType();
Expand Down

0 comments on commit b1f6e2d

Please sign in to comment.