Skip to content
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

Merged

Conversation

Aaronontheweb
Copy link
Member

  • 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

* 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();
Copy link
Member Author

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?
Copy link
Member Author

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?

Copy link
Contributor

@Arkatufus Arkatufus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Arkatufus Arkatufus enabled auto-merge (squash) August 16, 2021 15:18
@Aaronontheweb Aaronontheweb disabled auto-merge August 16, 2021 16:11
@Aaronontheweb Aaronontheweb merged commit 5646f96 into akkadotnet:dev Aug 16, 2021
@Aaronontheweb Aaronontheweb deleted the api/make-Router-extensible branch August 16, 2021 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants