Core: MAC - Scoped dependency persist states in others request

Created on 13 Aug 2018  路  10Comments  路  Source: dotnet/core

General

I have a handler that is in charge of notifing messages to every layer of the application for each http request, the problem is that, this one is keeping the state on different requests, in one particular layer.

Steps

  • have a command handler in one layer, and a controller in other layer
  • have the command handler setted as transient
  • have the notificationhandler setted as scoped
  • both have a notification handler injected
  • Start a request
  • add a notification in the scope of the command handler
  • controller does not have the notification
  • send another request
  • check notifications on the command handler
  • command handler has previuos request notification
  • add another one
  • controller still does not have any notification

Env

We only see this problem on a dev machine under macOS 10.13.6 (17G65) , with .netcore sdk 2.1.301

area-aspnet

All 10 comments

驴any update?

I'm having the same issue

same here...

Same issue on my macOS High Sierra, huge blocker too

@Dongata do you have a sample app that can reproduce this issue? If you can share your app in a GitHub repo that would be ideal. Same goes to anyone else who can show us a broken app.

I'll try to make one exaple for you on friday, if it's that ok with you c:

Thanks, we'll take a look when you have that ready.

@Dongata did you have a chance to get to this?

Sorry @Eilon, really i was really busy, i'll try to make an exaple this week

Closing for now because we don't have a repro. If you have a change to get this done, please open a new issue at https://github.com/aspnet/Home/issues

Was this page helpful?
0 / 5 - 0 ratings