NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Raven store is disposed when using StructureMap

Open andreasohlund opened this issue 14 years ago • 3 comments

The documentstore seems to be disposed even though its a singeton.

The SM documenation confirms that it shouldn't be disposed http://codebetter.com/jeremymiller/2010/02/10/nested-containers-in-structuremap-2-6-1/

andreasohlund avatar Jan 21 '12 15:01 andreasohlund

Have you reproduced this?

On Jan 21, 2012, at 9:36 AM, Andreas Ö[email protected] wrote:

The documentstore seems to be disposed even though its a singeton.

The SM documenation confirms that it shouldn't be disposed http://codebetter.com/jeremymiller/2010/02/10/nested-containers-in-structuremap-2-6-1/


Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/186

kblooie avatar Jan 21 '12 17:01 kblooie

Yes, run the pubsub sample with the sm builder

Sent from my iPhone

On 21 jan 2012, at 18:16, Jonathan Matheus [email protected] wrote:

Have you reproduced this?

On Jan 21, 2012, at 9:36 AM, Andreas Ö[email protected] wrote:

The documentstore seems to be disposed even though its a singeton.

The SM documenation confirms that it shouldn't be disposed http://codebetter.com/jeremymiller/2010/02/10/nested-containers-in-structuremap-2-6-1/


Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/186


Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/186#issuecomment-3597414

andreasohlund avatar Jan 21 '12 18:01 andreasohlund

And it only occurs if we register the raven uow. So it seems that when the uow gets disposed the store is disposed as well

Sent from my iPhone

On 21 jan 2012, at 18:16, Jonathan Matheus [email protected] wrote:

Have you reproduced this?

On Jan 21, 2012, at 9:36 AM, Andreas Ö[email protected] wrote:

The documentstore seems to be disposed even though its a singeton.

The SM documenation confirms that it shouldn't be disposed http://codebetter.com/jeremymiller/2010/02/10/nested-containers-in-structuremap-2-6-1/


Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/186


Reply to this email directly or view it on GitHub: https://github.com/NServiceBus/NServiceBus/issues/186#issuecomment-3597414

andreasohlund avatar Jan 21 '12 18:01 andreasohlund