Click here to Skip to main content
15,887,776 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionBody Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
jkirkerx27-Jun-18 6:26
professionaljkirkerx27-Jun-18 6:26 
AnswerRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
Richard Deeming27-Jun-18 7:13
mveRichard Deeming27-Jun-18 7:13 
GeneralRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
jkirkerx27-Jun-18 8:13
professionaljkirkerx27-Jun-18 8:13 
GeneralRe: Body Tag, Razor and AngularJS workaround or better idea for body tag cannot have c# in it. Pin
Richard Deeming27-Jun-18 8:18
mveRichard Deeming27-Jun-18 8:18 
Question.Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
jkirkerx25-Jun-18 12:14
professionaljkirkerx25-Jun-18 12:14 
AnswerRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
F-ES Sitecore26-Jun-18 0:03
professionalF-ES Sitecore26-Jun-18 0:03 
GeneralRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
jkirkerx26-Jun-18 6:33
professionaljkirkerx26-Jun-18 6:33 
AnswerRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
Richard Deeming26-Jun-18 1:37
mveRichard Deeming26-Jun-18 1:37 
jkirkerx wrote:
My question is, will I end up learning that I can't load dependency injections from the primary project to the secondary project?
Simple answer: no. Smile | :)

If anything, DI is easier in ASP.NET Core than in previous versions, because it's baked-in. Just declare the dependencies in your constructor, and register your services in the Startup.ConfigureServices method, and the framework will wire everything together for you.

(If you don't want to explicitly register every single implementation of a service, you can use something like Scrutor[^] to find and register all implementations in an assembly.)



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: .Net Core 2.1, DI and System.Web in a separate 2.1 Project Pin
jkirkerx26-Jun-18 6:35
professionaljkirkerx26-Jun-18 6:35 
QuestionImages are not exporting to pdf using jspdf.debug.js Pin
Member 1370125121-Jun-18 23:05
Member 1370125121-Jun-18 23:05 
QuestionReactJS.Net - Server side rendering works in development, but not on my production server Pin
jkirkerx14-Jun-18 11:36
professionaljkirkerx14-Jun-18 11:36 
Answer[solved] Pin
jkirkerx18-Jun-18 9:52
professionaljkirkerx18-Jun-18 9:52 
QuestionBlurry Pdf Output while uisng Html2pdf.bundle.js Pin
Member 1370125113-Jun-18 19:35
Member 1370125113-Jun-18 19:35 
AnswerRe: Blurry Pdf Output while uisng Html2pdf.bundle.js Pin
Nathan Minier14-Jun-18 16:46
professionalNathan Minier14-Jun-18 16:46 
QuestionConversion of HTML to PDF Using JsPdf Pin
Member 1370125111-Jun-18 20:08
Member 1370125111-Jun-18 20:08 
QuestionRe: Conversion of HTML to PDF Using JsPdf Pin
Richard MacCutchan11-Jun-18 21:38
mveRichard MacCutchan11-Jun-18 21:38 
AnswerRe: Conversion of HTML to PDF Using JsPdf Pin
Member 1370125111-Jun-18 23:53
Member 1370125111-Jun-18 23:53 
QuestionImg Collection Pin
sunsher9-Jun-18 1:44
sunsher9-Jun-18 1:44 
AnswerRe: Img Collection Pin
Vincent Maverick Durano12-Jun-18 20:47
professionalVincent Maverick Durano12-Jun-18 20:47 
AnswerRe: Img Collection Pin
User 418025414-Jun-18 7:05
User 418025414-Jun-18 7:05 
QuestionHow do I control the specflow execution sequence Pin
Ger Hayden4-Jun-18 23:18
Ger Hayden4-Jun-18 23:18 
QuestionInsuring that an application does not maintain a valid state on initialization or shutdown failure. Pin
Stephen Holdorf4-Jun-18 8:45
Stephen Holdorf4-Jun-18 8:45 
AnswerRe: Insuring that an application does not maintain a valid state on initialization or shutdown failure. Pin
Stephen Holdorf5-Jun-18 0:52
Stephen Holdorf5-Jun-18 0:52 
AnswerRe: Insuring that an application does not maintain a valid state on initialization or shutdown failure. Pin
Nathan Minier5-Jun-18 1:43
professionalNathan Minier5-Jun-18 1:43 
QuestionCreate a text file in client machine using asp.net Pin
raj.sibin3-Jun-18 19:02
raj.sibin3-Jun-18 19:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.