diff --git a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.DotNet.verified.txt b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.DotNet.verified.txt index 1f2f8413c30..cfc5130e2be 100644 --- a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.DotNet.verified.txt +++ b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.DotNet.verified.txt @@ -100,8 +100,6 @@ namespace Akka.Actor public static Akka.Actor.IActorRef GetCurrentSelfOrNoSender() { } public static Akka.Actor.IActorRef GetCurrentSenderOrNoSender() { } public Akka.Actor.IInternalActorRef GetSingleChild(string name) { } - [Akka.Annotations.InternalApiAttribute()] - protected virtual void HandleActorTaskSchedulerMessage(Akka.Dispatch.SysMsg.ActorTaskSchedulerMessage m) { } public void Init(bool sendSupervise, Akka.Dispatch.MailboxType mailboxType) { } public Akka.Actor.Internal.ChildRestartStats InitChild(Akka.Actor.IInternalActorRef actor) { } public void Invoke(Akka.Actor.Envelope envelope) { } @@ -3129,16 +3127,6 @@ namespace Akka.Dispatch.SysMsg public ActorTask(System.Threading.Tasks.Task task) { } public System.Threading.Tasks.Task Task { get; } } - [Akka.Annotations.InternalApiAttribute()] - public sealed class ActorTaskSchedulerMessage : Akka.Dispatch.SysMsg.SystemMessage - { - public ActorTaskSchedulerMessage(Akka.Dispatch.ActorTaskScheduler scheduler, System.Threading.Tasks.Task task, object message) { } - public ActorTaskSchedulerMessage(System.Exception exception, object message) { } - public System.Exception Exception { get; } - public object Message { get; } - public void ExecuteTask() { } - public override string ToString() { } - } public sealed class Create : Akka.Dispatch.SysMsg.SystemMessage { public Create(Akka.Actor.ActorInitializationException failure = null) { } diff --git a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.Net.verified.txt b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.Net.verified.txt index 378e652485b..fb317ce392f 100644 --- a/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.Net.verified.txt +++ b/src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.Net.verified.txt @@ -100,8 +100,6 @@ namespace Akka.Actor public static Akka.Actor.IActorRef GetCurrentSelfOrNoSender() { } public static Akka.Actor.IActorRef GetCurrentSenderOrNoSender() { } public Akka.Actor.IInternalActorRef GetSingleChild(string name) { } - [Akka.Annotations.InternalApiAttribute()] - protected virtual void HandleActorTaskSchedulerMessage(Akka.Dispatch.SysMsg.ActorTaskSchedulerMessage m) { } public void Init(bool sendSupervise, Akka.Dispatch.MailboxType mailboxType) { } public Akka.Actor.Internal.ChildRestartStats InitChild(Akka.Actor.IInternalActorRef actor) { } public void Invoke(Akka.Actor.Envelope envelope) { } @@ -3121,16 +3119,6 @@ namespace Akka.Dispatch.SysMsg public ActorTask(System.Threading.Tasks.Task task) { } public System.Threading.Tasks.Task Task { get; } } - [Akka.Annotations.InternalApiAttribute()] - public sealed class ActorTaskSchedulerMessage : Akka.Dispatch.SysMsg.SystemMessage - { - public ActorTaskSchedulerMessage(Akka.Dispatch.ActorTaskScheduler scheduler, System.Threading.Tasks.Task task, object message) { } - public ActorTaskSchedulerMessage(System.Exception exception, object message) { } - public System.Exception Exception { get; } - public object Message { get; } - public void ExecuteTask() { } - public override string ToString() { } - } public sealed class Create : Akka.Dispatch.SysMsg.SystemMessage { public Create(Akka.Actor.ActorInitializationException failure = null) { } diff --git a/src/core/Akka/Actor/ActorCell.DefaultMessages.cs b/src/core/Akka/Actor/ActorCell.DefaultMessages.cs index 5bd19bc964b..14e01309757 100644 --- a/src/core/Akka/Actor/ActorCell.DefaultMessages.cs +++ b/src/core/Akka/Actor/ActorCell.DefaultMessages.cs @@ -14,7 +14,6 @@ using Akka.Event; using Debug = Akka.Event.Debug; using System.Globalization; -using Akka.Annotations; namespace Akka.Actor { @@ -335,8 +334,7 @@ internal void SystemInvoke(ISystemMessage envelope) SysMsgInvokeAll(new EarliestFirstSystemMessageList((SystemMessage)envelope), CalculateState()); } - [InternalApi] - protected virtual void HandleActorTaskSchedulerMessage(ActorTaskSchedulerMessage m) + private void HandleActorTaskSchedulerMessage(ActorTaskSchedulerMessage m) { //set the current message captured in the async operation //current message was cleared earlier when the async receive handler completed diff --git a/src/core/Akka/Dispatch/SysMsg/ISystemMessage.cs b/src/core/Akka/Dispatch/SysMsg/ISystemMessage.cs index 00fa7967027..cc37c4341e9 100644 --- a/src/core/Akka/Dispatch/SysMsg/ISystemMessage.cs +++ b/src/core/Akka/Dispatch/SysMsg/ISystemMessage.cs @@ -588,8 +588,7 @@ public ActorTask(Task task) /// /// TBD /// - [InternalApi] - public sealed class ActorTaskSchedulerMessage : SystemMessage + internal sealed class ActorTaskSchedulerMessage : SystemMessage { private readonly ActorTaskScheduler _scheduler; private readonly Task _task;