1
1
using Blazored . Toast ;
2
2
using LinkDotNet . Blog . Web . Authentication . Auth0 ;
3
3
using LinkDotNet . Blog . Web . Authentication . Dummy ;
4
- using LinkDotNet . Blog . Web . Pages . Admin ;
5
4
using LinkDotNet . Blog . Web . RegistrationExtensions ;
6
- using LinkDotNet . Blog . Web . Shared . Services ;
7
- using LinkDotNet . Blog . Web . Shared . Services . Sitemap ;
8
5
using Microsoft . AspNetCore . Builder ;
9
6
using Microsoft . AspNetCore . Hosting ;
10
7
using Microsoft . Extensions . Configuration ;
@@ -45,7 +42,7 @@ public void ConfigureServices(IServiceCollection services)
45
42
46
43
services . AddBlazoredToast ( ) ;
47
44
services . AddHeadElementHelper ( ) ;
48
- RegisterServices ( services ) ;
45
+ services . RegisterServices ( ) ;
49
46
}
50
47
51
48
public void Configure ( IApplicationBuilder app , IWebHostEnvironment env )
@@ -77,15 +74,5 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
77
74
endpoints . MapFallbackToPage ( "/_Host" ) ;
78
75
} ) ;
79
76
}
80
-
81
- private static void RegisterServices ( IServiceCollection services )
82
- {
83
- services . AddScoped < ILocalStorageService , LocalStorageService > ( ) ;
84
- services . AddSingleton < ISortOrderCalculator , SortOrderCalculator > ( ) ;
85
- services . AddScoped < IUserRecordService , UserRecordService > ( ) ;
86
- services . AddScoped < IDashboardService , DashboardService > ( ) ;
87
- services . AddScoped < ISitemapService , SitemapService > ( ) ;
88
- services . AddScoped < IXmlFileWriter , XmlFileWriter > ( ) ;
89
- }
90
77
}
91
78
}
0 commit comments