w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
C# Where to initialize IDisposable resource - within data class or data-object-list holders class

Sounds, to me, like 5 is your best bet.

I would be looking to have a 'composition root' that creates the BGW and FW once and then injects them into whatever needs them. The 'composition root' can then dispose when all is done.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.