-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
심승용
committed
May 7, 2020
1 parent
9834697
commit 50d208f
Showing
3 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Akka.Actor; | ||
using Akka.Event; | ||
|
||
namespace BLUECATS.ToastNotifier.Actors | ||
{ | ||
public class EventSubscribeActor : ReceiveActor, IWithUnboundedStash | ||
{ | ||
public IStash Stash { get; set; } | ||
|
||
public static Props Props(IActorRef notificationActor) | ||
{ | ||
return Akka.Actor.Props.Create(() => new EventSubscribeActor(notificationActor)); | ||
} | ||
|
||
public EventSubscribeActor(IActorRef notificationActor) | ||
{ | ||
Receive<Error>(m => { notificationActor.Tell(m.ToString()); }); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters