These are chat archives for akkadotnet/akka.net

31st
Mar 2018
Lutando Ngqakaza
@Lutando
Mar 31 2018 09:12
I see i think i sorta get it
Lutando Ngqakaza
@Lutando
Mar 31 2018 12:38
are there any opinions here about weather or not to have "typed" actors for typesafety interms of doing Tell()s or Asks() ? would i be shooting myself in the foot if i decide to try something like this out?
Mathias Feitzinger
@feitzi
Mar 31 2018 12:42
@Lutando you want to send messages only to a actor which is able to handle it? And this during design time? I think this is not possible, because your ActorRef has no idea what actor is behind the reference.
Lutando Ngqakaza
@Lutando
Mar 31 2018 12:46
@feitzi youre correct but talking about something like this https://gist.github.com/Horusiath/f5c77e043ee17e02d0311315bcde9c79 from @Horusiath
ofcourse it would be impossible to enforce this 100% in my codebase, esentially this is just a typed facade to actorrefs
Mathias Feitzinger
@feitzi
Mar 31 2018 14:19
@Lutando i didn't belief that there is something like that. In my opinion that could be very confusing with things like behaviors, routing etc...
You shouldn't equate Tell/Ask with a standard method call on a object.
Lutando Ngqakaza
@Lutando
Mar 31 2018 14:48
@feitzi i think you misread my question :smile:
Mathias Feitzinger
@feitzi
Mar 31 2018 14:52
you want something like IActorRef<IMyMessage> ?
Onur Gumus
@OnurGumus
Mar 31 2018 14:54
How do I ignore a field or property with Hyperion serializer?
ok hyperion has its own ignore attribute
Marc Piechura
@marcpiechura
Mar 31 2018 15:17
@Lutando you probably want Akka Typed but that hasn’t been ported yet and is more than just typed actors, see https://akka.io/blog/2017/05/05/typed-intro
We would ofc accept PR’s 😜
Lutando Ngqakaza
@Lutando
Mar 31 2018 15:19
AltcoinsBattle
@AltcoinsBattle_twitter
Mar 31 2018 17:15

Hey,

Trader.Tell(new TransactionDone());
Context.Stop(Self);

Will TransactionDone message be send before Actor is stopped?
Or there can be a situation when actor will be stopped before the message is sent?

Onur Gumus
@OnurGumus
Mar 31 2018 20:28
@AltcoinsBattle_twitter message will be sent.