File tree 33 files changed +203
-46
lines changed
src/ProjectTemplates/Web.ProjectTemplates/content
ComponentsWebAssembly-CSharp
33 files changed +203
-46
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using System . Security . Claims ;
3
+ using System . Threading ;
4
+ using System . Threading . Tasks ;
2
5
using Microsoft . AspNetCore . Components ;
3
6
using Microsoft . AspNetCore . Components . Authorization ;
4
7
using Microsoft . AspNetCore . Components . Server ;
5
8
using Microsoft . AspNetCore . Identity ;
9
+ using Microsoft . Extensions . DependencyInjection ;
10
+ using Microsoft . Extensions . Logging ;
6
11
using Microsoft . Extensions . Options ;
7
12
8
13
namespace BlazorServerWeb_CSharp . Areas . Identity
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Text ;
4
+ using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
2
5
using Microsoft . EntityFrameworkCore ;
3
6
4
7
namespace BlazorServerWeb_CSharp . Data
Original file line number Diff line number Diff line change
1
+ using System ;
2
+
1
3
namespace BlazorServerWeb_CSharp . Data
2
4
{
3
5
public class WeatherForecast
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Linq ;
3
+ using System . Threading . Tasks ;
4
+
1
5
namespace BlazorServerWeb_CSharp . Data
2
6
{
3
7
public class WeatherForecastService
Original file line number Diff line number Diff line change 1
- using System . Diagnostics ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Diagnostics ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
2
6
using Microsoft . AspNetCore . Mvc ;
3
7
using Microsoft . AspNetCore . Mvc . RazorPages ;
8
+ using Microsoft . Extensions . Logging ;
4
9
5
10
namespace BlazorServerWeb_CSharp . Pages
6
11
{
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
1
5
#if ( OrganizationalAuth || IndividualB2CAuth )
2
6
using Microsoft . AspNetCore . Authentication ;
3
7
using Microsoft . AspNetCore . Authentication . OpenIdConnect ;
10
14
#endif
11
15
using Microsoft . AspNetCore . Authorization ;
12
16
#endif
17
+ using Microsoft . AspNetCore . Builder ;
13
18
using Microsoft . AspNetCore . Components ;
14
19
#if ( IndividualLocalAuth )
15
20
using Microsoft . AspNetCore . Components . Authorization ;
16
21
using Microsoft . AspNetCore . Identity ;
17
22
using Microsoft . AspNetCore . Identity . UI ;
18
23
#endif
24
+ using Microsoft . AspNetCore . Hosting ;
19
25
#if ( OrganizationalAuth )
20
26
using Microsoft . AspNetCore . Mvc . Authorization ;
21
27
#endif
22
28
#if ( IndividualLocalAuth )
23
29
using Microsoft . EntityFrameworkCore ;
24
30
#endif
31
+ using Microsoft . Extensions . Configuration ;
32
+ using Microsoft . Extensions . DependencyInjection ;
33
+ using Microsoft . Extensions . Hosting ;
25
34
#if ( GenerateGraph )
26
35
using Graph = Microsoft . Graph ;
27
36
#endif
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Net . Http ;
4
+ using System . Text ;
5
+ using System . Threading . Tasks ;
1
6
#if ( ! NoAuth && Hosted )
2
7
using Microsoft . AspNetCore . Components . WebAssembly . Authentication ;
3
8
#endif
4
9
using Microsoft . AspNetCore . Components . WebAssembly . Hosting ;
10
+ using Microsoft . Extensions . Configuration ;
11
+ using Microsoft . Extensions . DependencyInjection ;
12
+ using Microsoft . Extensions . Logging ;
5
13
#if ( Hosted )
6
14
using ComponentsWebAssembly_CSharp . Client ;
7
15
#else
Original file line number Diff line number Diff line change 1
1
using Microsoft . AspNetCore . ApiAuthorization . IdentityServer ;
2
2
using Microsoft . AspNetCore . Mvc ;
3
+ using Microsoft . Extensions . Logging ;
3
4
4
5
namespace ComponentsWebAssembly_CSharp . Server . Controllers
5
6
{
Original file line number Diff line number Diff line change 1
- #if ( ! NoAuth )
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
5
+ #if ( ! NoAuth )
2
6
using Microsoft . AspNetCore . Authorization ;
3
7
#endif
4
8
#if ( GenerateApi )
9
+ using Microsoft . Extensions . Configuration ;
5
10
using Microsoft . Identity . Web ;
6
11
using System . Net ;
12
+ using System . Net . Http ;
7
13
#endif
8
14
#if ( GenerateGraph )
9
15
using Microsoft . Graph ;
10
16
#endif
11
17
using Microsoft . AspNetCore . Mvc ;
18
+ using Microsoft . Extensions . Logging ;
12
19
#if ( OrganizationalAuth || IndividualB2CAuth )
13
20
using Microsoft . Identity . Web . Resource ;
14
21
#endif
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . ApiAuthorization . IdentityServer ;
1
+ using ComponentsWebAssembly_CSharp . Server . Models ;
2
+ using IdentityServer4 . EntityFramework . Options ;
3
+ using Microsoft . AspNetCore . ApiAuthorization . IdentityServer ;
2
4
using Microsoft . EntityFrameworkCore ;
3
5
using Microsoft . Extensions . Options ;
4
- using IdentityServer4 . EntityFramework . Options ;
5
- using ComponentsWebAssembly_CSharp . Server . Models ;
6
+ using System ;
7
+ using System . Collections . Generic ;
8
+ using System . Linq ;
9
+ using System . Threading . Tasks ;
6
10
7
11
namespace ComponentsWebAssembly_CSharp . Server . Data
8
12
{
Original file line number Diff line number Diff line change 1
1
using Microsoft . AspNetCore . Identity ;
2
+ using System ;
3
+ using System . Collections . Generic ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
2
6
3
7
namespace ComponentsWebAssembly_CSharp . Server . Models
4
8
{
Original file line number Diff line number Diff line change 1
- using System . Diagnostics ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Diagnostics ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
2
6
using Microsoft . AspNetCore . Mvc ;
3
7
using Microsoft . AspNetCore . Mvc . RazorPages ;
8
+ using Microsoft . Extensions . Logging ;
4
9
5
10
namespace ComponentsWebAssembly_CSharp . Server . Pages
6
11
{
Original file line number Diff line number Diff line change 1
- #if ( OrganizationalAuth || IndividualB2CAuth || IndividualLocalAuth )
1
+ using System . Linq ;
2
+ #if ( OrganizationalAuth || IndividualB2CAuth || IndividualLocalAuth )
2
3
using Microsoft . AspNetCore . Authentication ;
3
4
#endif
4
5
#if ( OrganizationalAuth || IndividualB2CAuth )
5
6
using Microsoft . AspNetCore . Authentication . JwtBearer ;
6
7
#endif
8
+ using Microsoft . AspNetCore . Builder ;
9
+ using Microsoft . AspNetCore . Hosting ;
7
10
using Microsoft . AspNetCore . ResponseCompression ;
8
11
#if ( IndividualLocalAuth )
9
12
using Microsoft . EntityFrameworkCore ;
10
13
#endif
14
+ using Microsoft . Extensions . Configuration ;
15
+ using Microsoft . Extensions . DependencyInjection ;
16
+ using Microsoft . Extensions . Hosting ;
11
17
#if ( GenerateGraph )
12
18
using Graph = Microsoft . Graph ;
13
19
#endif
Original file line number Diff line number Diff line change 1
- namespace ComponentsWebAssembly_CSharp . Shared
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Text ;
4
+
5
+ namespace ComponentsWebAssembly_CSharp . Shared
2
6
{
3
7
public class WeatherForecast
4
8
{
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using Microsoft . AspNetCore . Builder ;
3
+ using Microsoft . Extensions . Hosting ;
4
+
1
5
var builder = WebApplication . CreateBuilder ( args ) ;
2
6
var app = builder . Build ( ) ;
3
7
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . IO ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
6
+ using Microsoft . AspNetCore . Builder ;
7
+ using Microsoft . AspNetCore . Hosting ;
8
+ using Microsoft . Extensions . DependencyInjection ;
9
+ using Microsoft . Extensions . Hosting ;
1
10
using GrpcService_CSharp . Services ;
2
11
3
12
var builder = WebApplication . CreateBuilder ( args ) ;
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
1
5
using Grpc . Core ;
6
+ using Microsoft . Extensions . Logging ;
2
7
using GrpcService_CSharp ;
3
8
4
9
namespace GrpcService_CSharp . Services
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Mvc ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
5
+ using Microsoft . AspNetCore . Mvc ;
2
6
using Microsoft . AspNetCore . Mvc . RazorPages ;
3
7
4
8
namespace Company . RazorClassLibrary1 . MyFeature . Pages
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Threading . Tasks ;
1
3
using Microsoft . JSInterop ;
2
4
3
5
namespace Company . RazorClassLibrary1
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Text ;
4
+ using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
2
5
using Microsoft . EntityFrameworkCore ;
3
6
4
7
namespace Company . WebApplication1 . Data
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
1
3
using System . Diagnostics ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
2
6
using Microsoft . AspNetCore . Mvc ;
3
7
using Microsoft . AspNetCore . Mvc . RazorPages ;
8
+ using Microsoft . Extensions . Logging ;
4
9
5
10
namespace Company . WebApplication1 . Pages
6
11
{
Original file line number Diff line number Diff line change 1
- #if ( GenerateApiOrGraph )
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
5
+ #if ( GenerateApiOrGraph )
6
+ using Microsoft . Extensions . Configuration ;
7
+ using Microsoft . Identity . Web ;
2
8
using System . Net ;
9
+ using System . Net . Http ;
3
10
#endif
4
- using Microsoft . AspNetCore . Mvc ;
5
- using Microsoft . AspNetCore . Mvc . RazorPages ;
6
11
#if ( GenerateGraph )
7
12
using Microsoft . Graph ;
8
13
#endif
9
- #if ( GenerateApiOrGraph )
10
- using Microsoft . Identity . Web ;
11
- #endif
14
+ using Microsoft . AspNetCore . Mvc ;
15
+ using Microsoft . AspNetCore . Mvc . RazorPages ;
16
+ using Microsoft . Extensions . Logging ;
12
17
13
18
namespace Company . WebApplication1 . Pages
14
19
{
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Mvc ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
5
+ using Microsoft . AspNetCore . Mvc ;
2
6
using Microsoft . AspNetCore . Mvc . RazorPages ;
7
+ using Microsoft . Extensions . Logging ;
3
8
4
9
namespace Company . WebApplication1 . Pages
5
10
{
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Threading . Tasks ;
1
5
#if ( OrganizationalAuth || IndividualB2CAuth )
2
6
using Microsoft . AspNetCore . Authentication ;
7
+ using Microsoft . Identity . Web ;
8
+ using Microsoft . Identity . Web . UI ;
3
9
using Microsoft . AspNetCore . Authentication . OpenIdConnect ;
4
10
using Microsoft . AspNetCore . Authorization ;
5
11
#endif
12
+ using Microsoft . AspNetCore . Builder ;
13
+ using Microsoft . AspNetCore . Hosting ;
6
14
#if ( IndividualLocalAuth )
7
15
using Microsoft . AspNetCore . Identity ;
8
16
#endif
12
20
#if ( IndividualLocalAuth )
13
21
using Microsoft . EntityFrameworkCore ;
14
22
#endif
15
- #if ( OrganizationalAuth || IndividualB2CAuth )
16
- using Microsoft . Identity . Web ;
17
- using Microsoft . Identity . Web . UI ;
18
- #endif
23
+ using Microsoft . Extensions . Configuration ;
24
+ using Microsoft . Extensions . DependencyInjection ;
25
+ using Microsoft . Extensions . Hosting ;
26
+ using Microsoft . Extensions . Logging ;
19
27
#if ( MultiOrgAuth )
20
28
using Microsoft . IdentityModel . Tokens ;
21
29
#endif
Original file line number Diff line number Diff line change 1
- using System . Diagnostics ;
2
- #if ( GenerateApiOrGraph )
3
- using System . Net ;
4
- #endif
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Diagnostics ;
4
+ using System . Linq ;
5
+ using System . Threading . Tasks ;
5
6
#if ( OrganizationalAuth )
6
7
using Microsoft . AspNetCore . Authorization ;
7
8
#endif
8
- using Microsoft . AspNetCore . Mvc ;
9
- #if ( GenerateGraph )
10
- using Microsoft . Graph ;
11
- #endif
12
9
#if ( GenerateApiOrGraph )
10
+ using Microsoft . Extensions . Configuration ;
13
11
using Microsoft . Identity . Web ;
12
+ using System . Net ;
13
+ using System . Net . Http ;
14
+ #endif
15
+ #if ( GenerateGraph )
16
+ using Microsoft . Graph ;
14
17
#endif
18
+ using Microsoft . AspNetCore . Mvc ;
19
+ using Microsoft . Extensions . Logging ;
15
20
using Company . WebApplication1 . Models ;
16
21
17
22
namespace Company . WebApplication1 . Controllers
Original file line number Diff line number Diff line change 1
- using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Text ;
4
+ using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
2
5
using Microsoft . EntityFrameworkCore ;
3
6
4
7
namespace Company . WebApplication1 . Data
Original file line number Diff line number Diff line change
1
+ using System ;
2
+
1
3
namespace Company . WebApplication1 . Models
2
4
{
3
5
public class ErrorViewModel
You can’t perform that action at this time.
0 commit comments