Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jul 30 12:07
    blinker001 closed #5160
  • Jul 30 12:07
    blinker001 commented #5160
  • Jul 30 08:03
    blinker001 commented #5160
  • Jul 30 08:01
    blinker001 commented #5160
  • Jul 30 07:39
    blinker001 commented #5160
  • Jul 29 22:31
    blinker001 edited #5160
  • Jul 29 22:31
    blinker001 edited #5160
  • Jul 29 22:27
    blinker001 edited #5160
  • Jul 29 22:27
    blinker001 edited #5160
  • Jul 29 22:26
    blinker001 opened #5160
  • Jul 28 21:42
    Aaronontheweb milestoned #5159
  • Jul 28 21:42
    Aaronontheweb labeled #5159
  • Jul 28 21:42
    Aaronontheweb labeled #5159
  • Jul 28 21:42
    Aaronontheweb commented #5159
  • Jul 28 21:41
    Aaronontheweb labeled #5159
  • Jul 28 18:01
    Aaronontheweb commented #5157
  • Jul 28 18:01
    Aaronontheweb assigned #5157
  • Jul 28 18:01
    Aaronontheweb milestoned #5157
  • Jul 28 18:01
    Aaronontheweb labeled #5157
  • Jul 28 18:00
    Aaronontheweb labeled #5157
Paul Trandem
@ptrandem
I'd like to respond to the parent with the original sender and message
Aaron Stannard
@Aaronontheweb
ah, I see
Paul Trandem
@ptrandem
once the superviser has issued a stop
Aaron Stannard
@Aaronontheweb
let me look real quick
might be a method on the ActorCell
Paul Trandem
@ptrandem
In debugging in my little test, I have a breakpoint in PostStop() and the CurrentMessage on Context is a reference to my own TestMessage, so that's why I assumed that's what I'd need.
so this is a little hacky IMHO
but
if your actor throws
and gets stopped
CurrentMessage is still the original message that caused the throw
because CurrentMessage = null never gets to run
exception disrupted it
so looks like it should still be preserved
if you just use that property
Paul Trandem
@ptrandem
Using that property would be great, but it's not exposed via IActorContext; i can only see it in the debugger.
I'll take a look at ActorCell as well.
Aaron Stannard
@Aaronontheweb
if you do IActorContext.AsInstanceOf<ActorCell>
that would do it\
it's assignable to that type
like I said, hacky
but it should work
Paul Trandem
@ptrandem
aah! ok. Hacky, yes, but we'll give that a shot. Thanks @Aaronontheweb !
Arsene Tochemey Gandote
@Tochemey
Hello I am having challenges create actors with Netcore where the actors need an injection of a repository at startup.
At any time I got System.ObjectDisposedException in the actor when accessing the repository interface
Bartosz Sypytkowski
@Horusiath
@Tochemey how and when are you creating your actors? Example: If you create an actor in some managed other context (i.e. http request handler) using that context's lifecycle to inject repository, it's quite probable that this repository will be disposed, while actor still lives - as actor context may live longer that context of http request.
Arsene Tochemey Gandote
@Tochemey
Ok
Arsene Tochemey Gandote
@Tochemey
@Horusiath Please is there a way to create actors with DI where the actors has constructors params?
Hyungho Ko
@hhko
My app got this log.
The remote system has quarantined this system. No further associations to the remote system are possible until this system is restarted.
How to solve it?
When it occur?
Aaron Stannard
@Aaronontheweb
occurs when a system message, which normally has reliable delivery attached to it, fails to get delivered
i.e. stopping an actor
death watching an actor
etc
sending a Termination notice back
way to fix it is to restart the quarantined system
that quarantine signal basically means that the state of your ActorSystem is corrupt as far as the remote system is concerned
you can subscribe to a ThisSystemQuarantined event
from the EventStream
that you'll receive that signal when you are quarantined by someone else
Hyungho Ko
@hhko
Yes I can subscribe to a "ThisSystemQuarantined" event.
but I don't know how to restart ActorSystem on run-time?
Aaron Stannard
@Aaronontheweb
you'd want to have something that sits outside the ActorSystem
that you can invoke from an actor
so in the case of a Topshelf service
I could have a static method I could invoke
that would dispose the old ActorSystem and re-create it