BoDi icon indicating copy to clipboard operation
BoDi copied to clipboard

Does instances created by registered factories are automatically disposed?

Open jswiniarski opened this issue 5 years ago • 0 comments

Hi,

I know that IDisposable instances registered by RegisterInstanceAs can be disposed by BoDI after each scenario only if dispose parameter is set to true. I want my instances to be created by factory method so I use RegisterFactoryAs registration method. I noticed that those instances are not stored in objectPool and they are not subjects for disposing in container's Dispose method.

Can you confirm that my observations are true? I'm using SpecFlow 3.3.30 and BoDI 1.4.1.

Thanks,

jswiniarski avatar Nov 16 '20 12:11 jswiniarski