Skip to content

Commit b1f6e2d

Browse files
authored
[Obsolete] warning disable CS0618 (#6646)
1 parent fdeedb8 commit b1f6e2d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/core/Akka.TestKit/TestProbe.cs

+2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ ISurrogate ISurrogated.ToSurrogate(ActorSystem system)
127127

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

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

132134
IActorRef IInternalActorRef.GetChild(IReadOnlyList<string> name)
133135
{

src/core/Akka/Dispatch/AbstractDispatcher.cs

+2
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,9 @@ internal static void PrintActors()
389389
Console.WriteLine("{0} inhabitants {1}", dispatcher, dispatcher.Inhabitants);
390390
foreach (var actor in a)
391391
{
392+
#pragma warning disable CS0618 // Type or member is obsolete
392393
var status = actor.IsTerminated ? "(terminated)" : "(active)";
394+
#pragma warning restore CS0618 // Type or member is obsolete
393395
var messages = actor is ActorRefWithCell
394396
? " " + actor.AsInstanceOf<ActorRefWithCell>().Underlying.NumberOfMessages + " messages"
395397
: " " + actor.GetType();

0 commit comments

Comments
 (0)