Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 27 22:16
    dependabot-preview[bot] synchronize #3985
  • Jan 27 22:16

    dependabot-preview[bot] on nuget

    Bump FsCheck.Xunit from 2.9.0 t… (compare)

  • Jan 27 22:16
    dependabot-preview[bot] edited #3985
  • Jan 27 22:15
    dependabot-preview[bot] edited #3985
  • Jan 27 22:15
    dependabot-preview[bot] synchronize #3986
  • Jan 27 22:15

    dependabot-preview[bot] on nuget

    Bump NUnit from 3.6.1 to 3.12.0… (compare)

  • Jan 27 22:15
    dependabot-preview[bot] synchronize #3985
  • Jan 27 22:15

    dependabot-preview[bot] on nuget

    Bump FsCheck.Xunit from 2.9.0 t… (compare)

  • Jan 27 22:15
    dependabot-preview[bot] edited #3986
  • Jan 27 22:15
    dependabot-preview[bot] edited #3985
  • Jan 27 22:15
    dependabot-preview[bot] synchronize #4066
  • Jan 27 22:15

    dependabot-preview[bot] on nuget

    Bump FSharp.Quotations.Evaluato… (compare)

  • Jan 27 22:15
    dependabot-preview[bot] edited #4066
  • Jan 27 22:15
    dependabot-preview[bot] edited #4149
  • Jan 27 22:14
    Aaronontheweb synchronize #4128
  • Jan 27 22:14

    Aaronontheweb on nuget

    (compare)

  • Jan 27 22:14

    Aaronontheweb on dev

    Bump Hyperion from 0.9.11 to 0.… (compare)

  • Jan 27 22:14
    Aaronontheweb closed #4149
  • Jan 27 22:13
    dependabot-preview[bot] edited #3986
  • Jan 27 22:13
    dependabot-preview[bot] edited #3985
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
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
Ok
Arsene
@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