Commit Graph

17 Commits (2a58a2fc7a4013e86e8eb6be846c9bb8aca5bbf0)

Author SHA1 Message Date
Kirk Larkin a57c0d5a06
General DI updates (#19515)
* General DI updates

* A few more sections

* Another small section

* More sections

* Small tweaks to previous commit

* Another section (2 left)

* Almost there (1 left)

* Final section

* A few final? touches

* A few final? touches
2020-08-20 13:39:01 -10:00
Rick Anderson 37660a2e38
Anti pattern di/ra/xboxeer (#19468)
* Add anti-patterns example in DI recommendations 

According to https://github.com/dotnet/AspNetCore.Docs/pull/19156, we'd like to add a new anti-patterns to DI recommendations in DI docs. The reason is in Stackoverflow, some community member is suggesting to call BuildServiceProvider to resolve service instance in ConfigureService method(https://stackoverflow.com/questions/31863981/how-to-resolve-instance-inside-configureservices-in-asp-net-core), which will result to couple issues as described in this PR. So it is better to add this as an anti-patterns in recommendations and provide an alternative way to address developers requirement.

* Add ✔️and before correct and incorrect

Add ✔️and before correct and incorrect

* xboxeer anti-pattern DI PR

* clean up

* clean up

* clean up

* clean up

* clean up

* clean up

Co-authored-by: Elendil <yuzheng1@microsoft.com>
2020-08-11 21:52:38 -10:00
Rick Anderson dc1237f61b
DI rewrite (#19271)
* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* work

* work

* work

* work

* work

* work

* work

* work

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* DI Antipatterns

* react to feedback

* react to feedback

* Apply suggestions from code review

Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>

* react to feedback

* react to feedback

* react to feedback

* react to feedback

* react to feedback

* react to feedback

* react to feedback

Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>
2020-08-11 21:42:11 -10:00
Luke Latham 4a16dc236d
3.1 Sample Updates (#16170) 2019-12-12 17:31:22 -06:00
Luke Latham 259dcfeca2 DI topic updates for 3.0 (#14471)
* DI topic updates for 3.0

Updates

* React to feedback

* AddControllersWithViews over UseMvc for 3.0 Autofac example

* Nits

* Link out for container replacement scenarios

* Content for Generic Host Startup injection
2019-09-24 09:31:50 -10:00
Luke Latham b93ab83fb6 Pascal case placeholder names in log strings (#14508)
* Pascal case placeholder names in log strings

* Updates
2019-09-23 14:11:50 -10:00
Luke Latham 1013d66639 Drop unused sample apps (#13041) 2019-06-28 12:50:50 -05:00
Luke Latham 021cb52aaa DI topic and sample update to 2.2 (#11729) 2019-03-28 11:04:51 -10:00
Rick Anderson 0ee6b101d9
delete map and min files (#9310) 2018-10-31 14:26:48 -10:00
Luke Latham 8e6dd4a7f4 Drop version from App package (#8881)
Addresses #8579 

I might be getting the hang of **_find and replace_** now. 😝

This doesn't touch a couple that ref 2.2.0. I'll tidy those up on https://github.com/aspnet/Docs/issues/8518 after 2.2 RTM.
2018-10-06 17:10:28 -10:00
Luke Latham 46f41d4774
Update All and App package versions (#8513) 2018-09-13 11:39:23 -05:00
Luke Latham 940ea3c502 Dependency injection topic and sample updates (#7412)
* Dependency injection topic and sample updates

Updates

Updates

Updates

Updates

* React to feedback

* React to feedback

* Update

* Update ctor injection behavior section (6331)

* React to feedback

* React to feedback

* Link updates

* React to feedback

* React to feedback

React to feedback

Updates

* React to feedback

* Ping me for feedback

* Describe ActivatorUtilities

* Update

* Crosslink repository pattern
2018-07-28 16:49:23 -06:00
Steve Smith 259b79e8e8 DI Disposing and Project Format Upgrade (#3016)
* Upgrade to VS2017 project format.

* Updated to describe how services container handles disposing of IDisposable instances

* added class definitions

* fixing bower path slashes
2017-03-30 07:49:50 -10:00
Tom Dykstra f6936aa2fd add original image files 2016-11-14 13:59:38 -08:00
Rick Anderson 924a773353 fix warnings 2016-11-14 10:08:04 -10:00
Steve Smith 8eb7855117 Fixes most of #862 (#2145)
Replaces two images with one animated image
Cleans up and clarifies some text
2016-11-11 08:29:44 -10:00
Daniel Roth e9c1419175 Add docfx content 2016-10-28 10:35:15 -07:00