--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To post to this group, send email to structure...@googlegroups.com.
To unsubscribe from this group, send email to structuremap-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/structuremap-users/-/9xXxrbx0KskJ.
For more options, visit https://groups.google.com/groups/opt_out.
Gary,I'm not clear on what you're asking. Are you just trying to find out what the types are, or to have the IApplicationStartupTask implementations run before any endpoints are executed? What platform is this for?Jeremy
On Dec 13, 2012, at 12:33 AM, Gary Brunton <gbru...@gmail.com> wrote:
Say I have an interface like this:public interface IApplicationStartupTask{void Execute();}When my web application starts up I have multiple registries I use for SM configuration. One of the registries scans for these IApplicationStartupTask types. This is all standard here.My problem is that I can't find a way to get the implementations on application startup unless I specifically call the following:ObjectFactory.GetAllInstances<IApplicationStartupTask>()But I don't want to do that. I would rather find a way to instantiate a type that has the implementations injected.To be clear, if after application startup an endpoint is reached and that endpoint has IEnumerable<IApplicationStartupTask> tasks in it's constructor, the tasks are populated as expected. But again, I want to somehow get access to these tasks on application startup. Not when an endpoint is reached.Thanks,Gary Brunton--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To post to this group, send email to structure...@googlegroups.com.
To unsubscribe from this group, send email to structuremap-users+unsub...@googlegroups.com.
To unsubscribe from this group, send email to structuremap-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/structuremap-users/-/W6YPjRPyHJEJ.
To view this discussion on the web visit https://groups.google.com/d/msg/structuremap-users/-/W6YPjRPyHJEJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "structuremap-users" group.
To post to this group, send email to structure...@googlegroups.com.
To unsubscribe from this group, send email to structuremap-users+unsub...@googlegroups.com.