Open GoogleCodeExporter opened 9 years ago
Sorry, a typo:
All calls to
ServiceLocator.GetInstance<..>();
should be
ServiceLocator.Current.GetInstance<..>();
Original comment by felix.ob...@netcologne.de
on 5 Nov 2011 at 9:12
I just learned -the hard way- that this approach won't work, due to the
flexibility we need on creating geometry factories. We would need a new
interface, that basically provides the GeometryFactory constructor options as
Create functions.
That could be resolved using CommonServiceLocator.
Original comment by felix.ob...@netcologne.de
on 5 Nov 2011 at 11:38
What if simply the IGeometryFactoryFactory interface is provided to the
readers/writers when created: i.e as constructor parameters? I strongly suggest
to not use CommonServiceLocators or IoC containers inside NTS library, i.e: as
required features for the library to work.
It's a developer choice to use ServiceLocators or other stuff, library should
be as easy as possible.
My2Cents.
Original comment by diegogu...@gmail.com
on 6 Nov 2011 at 10:16
I agree with diegoguidi. Have a simple base functionality in NTS that you can
then extend but keep extensions separate.
Original comment by johan.li...@astando.se
on 7 Nov 2011 at 7:43
Original issue reported on code.google.com by
felix.ob...@netcologne.de
on 5 Nov 2011 at 9:06