Skip to content

Commit

Permalink
Rename AutoReceivedMessage > IAutoReceivedMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
HCanber committed Mar 31, 2015
1 parent 71d5fda commit 4cf4c1e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/core/Akka.TestKit/Internal/InternalTestActorRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected override void AutoReceiveMessage(Envelope envelope)
}


public class InternalGetActor : AutoReceivedMessage, PossiblyHarmful
public class InternalGetActor : IAutoReceivedMessage, PossiblyHarmful
{
public static readonly InternalGetActor Instance = new InternalGetActor();
private InternalGetActor() { }
Expand Down
2 changes: 1 addition & 1 deletion src/core/Akka/Actor/ActorCell.DefaultMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void Invoke(Envelope envelope)

try
{
var autoReceivedMessage = message as AutoReceivedMessage;
var autoReceivedMessage = message as IAutoReceivedMessage;
if (autoReceivedMessage != null)
AutoReceiveMessage(envelope);
else
Expand Down
2 changes: 1 addition & 1 deletion src/core/Akka/Actor/ActorSelection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public override int GetHashCode()
/// <summary>
/// Class ActorSelectionMessage.
/// </summary>
public class ActorSelectionMessage : AutoReceivedMessage, PossiblyHarmful
public class ActorSelectionMessage : IAutoReceivedMessage, PossiblyHarmful
{
/// <summary>
/// Initializes a new instance of the <see cref="ActorSelectionMessage" /> class.
Expand Down
12 changes: 6 additions & 6 deletions src/core/Akka/Actor/AutoReceivedMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Akka.Actor
{
public interface AutoReceivedMessage : NoSerializationVerificationNeeded
public interface IAutoReceivedMessage : NoSerializationVerificationNeeded
{
}

public sealed class
Terminated : AutoReceivedMessage, PossiblyHarmful
Terminated : IAutoReceivedMessage, PossiblyHarmful
{
public Terminated(IActorRef actorRef, bool existenceConfirmed, bool addressTerminated)
{
Expand All @@ -30,7 +30,7 @@ public override string ToString()
}

//request to an actor ref, to get back the identity of the underlying actors
public sealed class Identify : AutoReceivedMessage
public sealed class Identify : IAutoReceivedMessage
{
public Identify(object messageId)
{
Expand Down Expand Up @@ -71,7 +71,7 @@ public override string ToString()
/// it processes the message, which gets handled using the normal supervisor mechanism, and
/// <see cref="IActorContext.Stop"/> which causes the actor to stop without processing any more messages. </para>
/// </summary>
public sealed class PoisonPill : AutoReceivedMessage
public sealed class PoisonPill : IAutoReceivedMessage
{
private PoisonPill() { }
private static readonly PoisonPill _instance = new PoisonPill();
Expand All @@ -97,7 +97,7 @@ public override string ToString()
/// is processed, without throwing an exception, and
/// <see cref="IActorContext.Stop"/> which causes the actor to stop without processing any more messages. </para>
/// </summary>
public sealed class Kill : AutoReceivedMessage
public sealed class Kill : IAutoReceivedMessage
{
private Kill() { }

Expand Down Expand Up @@ -128,7 +128,7 @@ public override string ToString()
/// The watcher <see cref="DeathWatch"/> subscribes to the <see cref="AddressTerminatedTopic"/> and translates this
/// event to <see cref="Terminated"/>, which is sent to itself.
/// </summary>
internal class AddressTerminated : AutoReceivedMessage, PossiblyHarmful
internal class AddressTerminated : IAutoReceivedMessage, PossiblyHarmful
{
public AddressTerminated(Address address)
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/Akka/Routing/RouterConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public virtual RouterConfig WithFallback(RouterConfig routerConfig)
public virtual bool IsManagementMessage(object message)
{
return
message is AutoReceivedMessage ||
message is IAutoReceivedMessage ||
// in akka.net this message is a subclass of AutoReceivedMessage - so removed condition that "message is Terminated ||"
message is RouterManagementMesssage;
}
Expand Down

0 comments on commit 4cf4c1e

Please sign in to comment.