DEV Community

loading...

Discussion on: Net Core important Features implementation

Collapse
glenmccallumcan profile image
Glen McCallum

Clean the way you moved the service injection logic outside of ConfigureServices into ServicesExtensions class.

Collapse
jai00271 profile image
Jai Author

Hi Glen,

thanks for your reply. May I know which project are you referring to? Is it BasicProjectSetup.

If yes, do you mean to keep both below lines in one method call instead of 2 in startup:

services.ConfigureCors();
services.InjectServices();

Forem Open with the Forem app