diff --git a/src/core/Akka.Remote/RemoteActorRef.cs b/src/core/Akka.Remote/RemoteActorRef.cs index 23f4adaa6f4..d9714ae78a2 100644 --- a/src/core/Akka.Remote/RemoteActorRef.cs +++ b/src/core/Akka.Remote/RemoteActorRef.cs @@ -98,8 +98,9 @@ public RemoteActorRef(RemoteTransport remote, Address localAddressToUse, ActorPa /// Obsolete. Use or Receive<> /// [Obsolete("Use Context.Watch and Receive [1.1.0]")] +#pragma warning disable CS0809 public override bool IsTerminated => false; - +#pragma warning restore CS0809 /// /// Gets the child. diff --git a/src/core/Akka.TestKit/TestProbe.cs b/src/core/Akka.TestKit/TestProbe.cs index 0faec3ff60a..f9ff837e136 100644 --- a/src/core/Akka.TestKit/TestProbe.cs +++ b/src/core/Akka.TestKit/TestProbe.cs @@ -82,6 +82,7 @@ public void Reply(object message) Sender.Tell(message,TestActor); } + /// /// N/A /// @@ -91,7 +92,9 @@ public void Reply(object message) /// /// N/A [Obsolete("Cannot create a TestProbe from a TestProbe", true)] +#pragma warning disable CS0809 public override TestProbe CreateTestProbe(string name=null) +#pragma warning restore CS0809 { throw new NotSupportedException("Cannot create a TestProbe from a TestProbe"); } diff --git a/src/core/Akka/Actor/ActorRef.cs b/src/core/Akka/Actor/ActorRef.cs index 62ee09f2e94..22cd8f73227 100644 --- a/src/core/Akka/Actor/ActorRef.cs +++ b/src/core/Akka/Actor/ActorRef.cs @@ -560,10 +560,12 @@ public override bool IsLocal { get { return true; } } - + /// [Obsolete("Use Context.Watch and Receive [1.1.0]")] +#pragma warning disable CS0809 public override bool IsTerminated { get { return false; } } +#pragma warning restore CS0809 } diff --git a/src/core/Akka/Actor/EmptyLocalActorRef.cs b/src/core/Akka/Actor/EmptyLocalActorRef.cs index 2cc50425d68..3dcf5d47dc0 100644 --- a/src/core/Akka/Actor/EmptyLocalActorRef.cs +++ b/src/core/Akka/Actor/EmptyLocalActorRef.cs @@ -42,14 +42,15 @@ public EmptyLocalActorRef(IActorRefProvider provider, ActorPath path, EventStrea /// /// TBD /// - public override IActorRefProvider Provider { get { return _provider; } } + public override IActorRefProvider Provider { get { return _provider; } } /// /// TBD /// [Obsolete("Use Context.Watch and Receive [1.1.0]")] +#pragma warning disable CS0809 public override bool IsTerminated { get { return true; } } - +#pragma warning restore CS0809 /// /// TBD ///