I agree with @Makoto, that simply asking for "cleanliness" is a clear sign for an opinion-based question in many cases. However, I don't think that this necessarily holds for the current revision for your question, although it can still use some improvement.
Let's take a look at the first revision:
So this works and it does what I want it to do but I would like to think that there must be a better way to achieve this so that the DI Engine can provide what is needed without me having to help it. If anyone knows a better way to do this please let me know. Thanks
Here you are asking for a "better way", without really specifying what "better" means for you. Also the question lacks detail, as it is not immediately clear what that "what is needed" is which the DI engine should provide.
The second revision is much clearer:
So this works and it does what I want it to do but it's not very clean.
How do I: Add the security element using the DI engine without having to extract the parameters from the service container and new'ing up a new instance of the class?
I don't think that this asks for "opinions" now. You show that you have a working solution, and that it somehow (see below) does not fit your needs. You then explicitly state what kind of solution you are looking for.
I believe that this question is clearly answerable (although I admittedly don't know the answer right now, without doing some research myself), and thus voted to reopen.
However, there is still some room for improvements: Your question is rather long, and it was difficult to immediately spot the actual question.
- It may help to restructure your question, e.g., by first briefly stating the problem and defining the desired solution, and then giving details on your own solution.
- You still don't say exactly what is wrong with your current solution, just that it is not clean. It may help to list the exact issues you'd like to have resolved, as "clean" is a rather subjective term.
- You may want to use some formatting to highlight important points, and convert the long enumeration ("So there were three problems here") into a Markdown list. This allows the reader to scan your question more efficiently, without getting lost or missing important bits of information.