1
1
using CheckDrive . Domain . Interfaces ;
2
- using CheckDrive . Application . Interfaces ;
2
+ using CheckDrive . Application . Interfaces ;
3
3
using CheckDrive . Infrastructure . Configurations ;
4
4
using CheckDrive . Infrastructure . Email ;
5
5
using CheckDrive . Infrastructure . Persistence ;
9
9
using Microsoft . EntityFrameworkCore ;
10
10
using Microsoft . Extensions . Configuration ;
11
11
using Microsoft . Extensions . DependencyInjection ;
12
- using CheckDrive . Application . Interfaces . Authorization ;
13
12
using CheckDrive . Infrastructure . Helpers ;
13
+ using CheckDrive . Application . Interfaces . Auth ;
14
14
15
15
namespace CheckDrive . Infrastructure . Extensions ;
16
16
@@ -20,7 +20,7 @@ public static IServiceCollection RegisterInfrastructure(this IServiceCollection
20
20
{
21
21
AddPersistence ( services , configuration ) ;
22
22
AddConfigurations ( services , configuration ) ;
23
- AddFluentEmail ( services , configuration ) ;
23
+ AddEmail ( services , configuration ) ;
24
24
AddServices ( services ) ;
25
25
AddIdentity ( services ) ;
26
26
@@ -49,14 +49,9 @@ private static void AddConfigurations(IServiceCollection services, IConfiguratio
49
49
. Bind ( configuration . GetSection ( SmsConfigurations . SectionName ) )
50
50
. ValidateDataAnnotations ( )
51
51
. ValidateOnStart ( ) ;
52
-
53
- services . AddOptions < JwtOptions > ( )
54
- . Bind ( configuration . GetSection ( JwtOptions . SectionName ) )
55
- . ValidateDataAnnotations ( )
56
- . ValidateOnStart ( ) ;
57
52
}
58
53
59
- private static void AddFluentEmail ( IServiceCollection services , IConfiguration configuration )
54
+ private static void AddEmail ( IServiceCollection services , IConfiguration configuration )
60
55
{
61
56
var emailSettings = configuration
62
57
. GetSection ( EmailConfigurations . SectionName )
0 commit comments