2sic / 2sxc

DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
http://2sxc.org
MIT License
145 stars 40 forks source link

Feature: Dynamically compiled .cs files should have Constructor Dependency Injection #3060

Closed iJungleboy closed 1 year ago

iJungleboy commented 1 year ago

I'm submitting a ...

[x] feature request

...about

[x] C# coding, WebAPIs, custom code

Current Behavior / Expected Behavior

Services can be requested using GetService<T> but to promote better coding, Constructor injection would be better.

Your environment

iJungleboy commented 1 year ago

Works for

  1. Dynamic .cs code files
  2. WebApi Controllers
  3. Custom DataSources

🤘🏽