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

Merge of #762 #776

Merged

Conversation

Aaronontheweb
Copy link
Member

See #762 for original PR notes. This merges @HCanber's changes in with all of the other changesets going into V1.

HCanber and others added 4 commits March 29, 2015 12:45
BREAKING CHANGES:
ActorRef == and != has been removed. This means all
actorRef1 == actorRef2 must be replaced with Equals(actorRef1, actorRef2)

Tell(object message), ie the implicit sender overload, has been moved
to an extension method, and requires a "using Akka.Actor;"

ActorRef.NoSender -> ActorRefs.NoSender
ActorRef.Nobody  -> ActorRefs.Nobody

Implicit cast from ActorRef to Routee has been replaced with Routee.FromActorRef(actorRef)

You might need to add a
using Akka.Actor;
to be able to use Tell with implicit sender.
From now on, an ActorRef implementation need to implement
both ActorRef and InternalActorRef interfaces.

Before this was the ActorRef hiearchy. Every ActorRef (except NoSender) had to inherit from InternaActorRef
Akka.Actor.ActorRef
+ Akka.Actor.InternalActorRef
|  + Akka.Actor.ActorRefWithCell
|  |  + Akka.Actor.LocalActorRef
|  |  |  + Akka.Actor.RootGuardianActorRef
|  |  |  + Akka.TestKit.TestActorRef<T>
|  |  + Akka.Actor.RepointableActorRef
... (other classes removed)
+ Akka.Actor.NoSender

Now ActorRef and InternalActorRef are interfaces and we have two new base
classes: ActorRefBase : ActorRef and InternalActorRefBase : ActorRefBase, InternalActorRef and the hierarchy is:
Akka.Actor.ActorRef
 + Akka.Actor.ActorRefBase
 |  + Akka.Actor.InternalActorRefBase
 |  |  + Akka.Actor.ActorRefWithCell
 |  |  |  + Akka.Actor.LocalActorRef
 |  |  |  |  + Akka.Actor.RootGuardianActorRef
... (other classes removed)

However there is no need for ActorRefs to inherit from the base classes.
Implementing InternalActorRef is a requirement though.
@Aaronontheweb
Copy link
Member Author

Beautiful, green check mark. And with that I hereby declare

AKKA.NET V1 CODE COMPLETE

Great job everyone cc @akkadotnet/contributors

Aaronontheweb added a commit that referenced this pull request Mar 30, 2015
@Aaronontheweb Aaronontheweb merged commit b4512f0 into akkadotnet:dev Mar 30, 2015
@skotzko
Copy link
Contributor

skotzko commented Mar 31, 2015

captain picard clap

@Aaronontheweb
Copy link
Member Author

doggie-dance

@mmisztal1980
Copy link
Contributor

image

@sean-gilliam
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants