我在我的asp.net核心应用程序(framework net46)中运行我的AKKA.NET演员系统。我通过运行“DOTNET跑”运行从命令提示符的web的应用程序,当我尝试使用Ctrl-C退出它,我得到以下输出和提示挂在那儿:AKKA.NET演员系统在asp.net核心应用程序中未正确关闭
c:\D3\>19:05:33.7024266 ENV=d0 Sdm.Web DEBUG Akka.Actor.Internal.ActorSystemImpl Disposing system
19:05:33.7084292 ENV=d0 Sdm.Web DEBUG Akka.Actor.Internal.ActorSystemImpl System shutdown initiated
[DEBUG][12/09/16 19:05:33][Thread 0023][EventStream] subscribing [akka://all-systems/] to channel Akka.Event.Debug
19:05:33.7134423 ENV=d0 Sdm.Web DEBUG Akka.Actor.GuardianActor Stopping
[DEBUG][12/09/16 19:05:33][Thread 0023][EventStream] subscribing [akka://all-systems/] to channel Akka.Event.Info
[DEBUG][12/09/16 19:05:33][Thread 0023][EventStream] subscribing [akka://all-systems/] to channel Akka.Event.Warning
[DEBUG][12/09/16 19:05:33][Thread 0023][EventStream] subscribing [akka://all-systems/] to channel Akka.Event.Error
如果我打另一个CTRL -c退出。但这看起来不正确。我使用依赖注入容器来管理角色系统(单例作用域)的生存时间,所以我假设容器实际上是试图在应用程序关闭时处理对象。
有人可以提出什么可能是错的?
伟大的thx。将尝试一下,让你知道它是如何去。 –