Browse Source
Merge pull request #594 from iAmBipinPaul/patch-1
Replace ServiceConfigurationContext with IServiceCollection
pull/595/head
Halil İbrahim Kalkan
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
docs/en/Getting-Started-AspNetCore-Application.md
|
|
|
@ -75,11 +75,11 @@ namespace BasicAspNetCoreApplication |
|
|
|
{ |
|
|
|
public class Startup |
|
|
|
{ |
|
|
|
public IServiceProvider ConfigureServices(ServiceConfigurationContext context) |
|
|
|
public IServiceProvider ConfigureServices(IServiceCollection services) |
|
|
|
{ |
|
|
|
context.Services.AddApplication<AppModule>(); |
|
|
|
services.AddApplication<AppModule>(); |
|
|
|
|
|
|
|
return context.Services.BuildServiceProviderFromFactory(); |
|
|
|
return services.BuildServiceProviderFromFactory(); |
|
|
|
} |
|
|
|
|
|
|
|
public void Configure(IApplicationBuilder app) |
|
|
|
|