Skip to content

Commit d7304f4

Browse files
Revert "Make HandleActorTaskSchedulerMessage method protected virtual (#6763)" (#6766)
This reverts commit 1345e58. Co-authored-by: Aaron Stannard <[email protected]>
1 parent c514fd1 commit d7304f4

File tree

4 files changed

+2
-29
lines changed

4 files changed

+2
-29
lines changed

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.DotNet.verified.txt

-12
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ namespace Akka.Actor
100100
public static Akka.Actor.IActorRef GetCurrentSelfOrNoSender() { }
101101
public static Akka.Actor.IActorRef GetCurrentSenderOrNoSender() { }
102102
public Akka.Actor.IInternalActorRef GetSingleChild(string name) { }
103-
[Akka.Annotations.InternalApiAttribute()]
104-
protected virtual void HandleActorTaskSchedulerMessage(Akka.Dispatch.SysMsg.ActorTaskSchedulerMessage m) { }
105103
public void Init(bool sendSupervise, Akka.Dispatch.MailboxType mailboxType) { }
106104
public Akka.Actor.Internal.ChildRestartStats InitChild(Akka.Actor.IInternalActorRef actor) { }
107105
public void Invoke(Akka.Actor.Envelope envelope) { }
@@ -3129,16 +3127,6 @@ namespace Akka.Dispatch.SysMsg
31293127
public ActorTask(System.Threading.Tasks.Task task) { }
31303128
public System.Threading.Tasks.Task Task { get; }
31313129
}
3132-
[Akka.Annotations.InternalApiAttribute()]
3133-
public sealed class ActorTaskSchedulerMessage : Akka.Dispatch.SysMsg.SystemMessage
3134-
{
3135-
public ActorTaskSchedulerMessage(Akka.Dispatch.ActorTaskScheduler scheduler, System.Threading.Tasks.Task task, object message) { }
3136-
public ActorTaskSchedulerMessage(System.Exception exception, object message) { }
3137-
public System.Exception Exception { get; }
3138-
public object Message { get; }
3139-
public void ExecuteTask() { }
3140-
public override string ToString() { }
3141-
}
31423130
public sealed class Create : Akka.Dispatch.SysMsg.SystemMessage
31433131
{
31443132
public Create(Akka.Actor.ActorInitializationException failure = null) { }

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveCore.Net.verified.txt

-12
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ namespace Akka.Actor
100100
public static Akka.Actor.IActorRef GetCurrentSelfOrNoSender() { }
101101
public static Akka.Actor.IActorRef GetCurrentSenderOrNoSender() { }
102102
public Akka.Actor.IInternalActorRef GetSingleChild(string name) { }
103-
[Akka.Annotations.InternalApiAttribute()]
104-
protected virtual void HandleActorTaskSchedulerMessage(Akka.Dispatch.SysMsg.ActorTaskSchedulerMessage m) { }
105103
public void Init(bool sendSupervise, Akka.Dispatch.MailboxType mailboxType) { }
106104
public Akka.Actor.Internal.ChildRestartStats InitChild(Akka.Actor.IInternalActorRef actor) { }
107105
public void Invoke(Akka.Actor.Envelope envelope) { }
@@ -3121,16 +3119,6 @@ namespace Akka.Dispatch.SysMsg
31213119
public ActorTask(System.Threading.Tasks.Task task) { }
31223120
public System.Threading.Tasks.Task Task { get; }
31233121
}
3124-
[Akka.Annotations.InternalApiAttribute()]
3125-
public sealed class ActorTaskSchedulerMessage : Akka.Dispatch.SysMsg.SystemMessage
3126-
{
3127-
public ActorTaskSchedulerMessage(Akka.Dispatch.ActorTaskScheduler scheduler, System.Threading.Tasks.Task task, object message) { }
3128-
public ActorTaskSchedulerMessage(System.Exception exception, object message) { }
3129-
public System.Exception Exception { get; }
3130-
public object Message { get; }
3131-
public void ExecuteTask() { }
3132-
public override string ToString() { }
3133-
}
31343122
public sealed class Create : Akka.Dispatch.SysMsg.SystemMessage
31353123
{
31363124
public Create(Akka.Actor.ActorInitializationException failure = null) { }

src/core/Akka/Actor/ActorCell.DefaultMessages.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
using Akka.Event;
1515
using Debug = Akka.Event.Debug;
1616
using System.Globalization;
17-
using Akka.Annotations;
1817

1918
namespace Akka.Actor
2019
{
@@ -335,8 +334,7 @@ internal void SystemInvoke(ISystemMessage envelope)
335334
SysMsgInvokeAll(new EarliestFirstSystemMessageList((SystemMessage)envelope), CalculateState());
336335
}
337336

338-
[InternalApi]
339-
protected virtual void HandleActorTaskSchedulerMessage(ActorTaskSchedulerMessage m)
337+
private void HandleActorTaskSchedulerMessage(ActorTaskSchedulerMessage m)
340338
{
341339
//set the current message captured in the async operation
342340
//current message was cleared earlier when the async receive handler completed

src/core/Akka/Dispatch/SysMsg/ISystemMessage.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,7 @@ public ActorTask(Task task)
588588
/// <summary>
589589
/// TBD
590590
/// </summary>
591-
[InternalApi]
592-
public sealed class ActorTaskSchedulerMessage : SystemMessage
591+
internal sealed class ActorTaskSchedulerMessage : SystemMessage
593592
{
594593
private readonly ActorTaskScheduler _scheduler;
595594
private readonly Task _task;

0 commit comments

Comments
 (0)