Skip to content

Commit 1345e58

Browse files
Make HandleActorTaskSchedulerMessage method protected virtual (akkadotnet#6763)
* Make `HandleActorTaskSchedulerMessage` method `protected virtual` * Update API Verify list --------- Co-authored-by: Aaron Stannard <[email protected]>
1 parent 3e1b8e5 commit 1345e58

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

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

+12
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ 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) { }
103105
public void Init(bool sendSupervise, Akka.Dispatch.MailboxType mailboxType) { }
104106
public Akka.Actor.Internal.ChildRestartStats InitChild(Akka.Actor.IInternalActorRef actor) { }
105107
public void Invoke(Akka.Actor.Envelope envelope) { }
@@ -3127,6 +3129,16 @@ namespace Akka.Dispatch.SysMsg
31273129
public ActorTask(System.Threading.Tasks.Task task) { }
31283130
public System.Threading.Tasks.Task Task { get; }
31293131
}
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+
}
31303142
public sealed class Create : Akka.Dispatch.SysMsg.SystemMessage
31313143
{
31323144
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,6 +100,8 @@ 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) { }
103105
public void Init(bool sendSupervise, Akka.Dispatch.MailboxType mailboxType) { }
104106
public Akka.Actor.Internal.ChildRestartStats InitChild(Akka.Actor.IInternalActorRef actor) { }
105107
public void Invoke(Akka.Actor.Envelope envelope) { }
@@ -3119,6 +3121,16 @@ namespace Akka.Dispatch.SysMsg
31193121
public ActorTask(System.Threading.Tasks.Task task) { }
31203122
public System.Threading.Tasks.Task Task { get; }
31213123
}
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+
}
31223134
public sealed class Create : Akka.Dispatch.SysMsg.SystemMessage
31233135
{
31243136
public Create(Akka.Actor.ActorInitializationException failure = null) { }

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

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

1819
namespace Akka.Actor
1920
{
@@ -334,7 +335,8 @@ internal void SystemInvoke(ISystemMessage envelope)
334335
SysMsgInvokeAll(new EarliestFirstSystemMessageList((SystemMessage)envelope), CalculateState());
335336
}
336337

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

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

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

0 commit comments

Comments
 (0)