Forum Post: RE: do you inject ?

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Stefan's link might also be a little outdated. There's a new version of the Code Share page on here - community.progress.com/.../default.aspx - which links to it. Direct link is github.com/.../InjectABL . The github version has been updated to use some of the libraries in 11.4 (stuff which moved from AutoEdge into OE). @ jmls on where to start: IoC containers all have the concept of a Composition Root, which is basically the top-level point at which the injection starts. Mark Seeman - who is a huge proponent of DI in the C#/.NET world - has a good intro at http://blog.ploeh.dk/2011/07/28/CompositionRoot/ . The point of the composition root is that it's the only place in the app that actually knows about the DI/IoC container. In AutoEdge it's in 1 file - start_session.p that is called in 2 places: on the client ABL code, from the start_ui.p procedure, and on AppServer startup, in as_startup.p (the startup event procedure). @ agent_008_nl on talks about this: I have proposed talks on the use of interfaces and "Composing complex applications" for a few Exchanges and PUG/Challenges, without luck. There are, after all, only so many timeslots available. I am always happy to talk about this stuff though. And even happier that Julian has finally seen the light on DI ;) regards, -- peter edit: indicate who i'm talking to

Continue reading...
 
Status
Not open for further replies.
Back
Top