-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make Router
open to extension
#5201
make Router
open to extension
#5201
Conversation
* Marked a handful of key methods as `virtual` * Replaced `TBD` with relevant XML-DOC comments in most areas * Cleaned up outdated code styles * Made `UnWrap` `protected` so it can be used in subclasses
@@ -4487,6 +4494,8 @@ namespace Akka.Routing | |||
public virtual string RouterDispatcher { get; } | |||
public virtual bool StopRouterWhenAllRouteesRemoved { get; } | |||
public abstract Akka.Routing.Router CreateRouter(Akka.Actor.ActorSystem system); | |||
[Akka.Annotations.InternalApiAttribute()] | |||
public abstract Akka.Actor.ActorBase CreateRouterActor(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to make this public
for a Phobos-specific issue, namely trying to wrap Akka.NET's built-in routers for the purposes of telemetry injection.
@@ -94,13 +94,9 @@ internal override Routee NewRoutee(Props routeeProps, IActorContext context) | |||
.AttachChild(Local.EnrichWithPoolDispatcher(routeeProps, context).WithDeploy(deploy), false, name); | |||
return new ActorRefRoutee(actorRef); | |||
} | |||
|
|||
// TODO: why internal? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old comment asking a question answered by this PR - why was this marked as internal
in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
virtual
TBD
with relevant XML-DOC comments in most areasUnWrap
protected
so it can be used in subclasses