File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ public enum AccountRegistrationEventType
21
21
AccountCompleted = 2 ,
22
22
}
23
23
24
+ public enum RecommendationType
25
+ {
26
+ AccountType1 ,
27
+ InvestmentType2
28
+ }
29
+
30
+
31
+
24
32
25
33
public LogForgingMiddleware ( RequestDelegate next , ILogger < LogForgingMiddleware > logger )
26
34
{
@@ -59,6 +67,11 @@ public async Task InvokeAsync(HttpContext context)
59
67
60
68
_logger . LogInformation ( $ "InvokeAsync called for event: { AccountRegistrationEventType . AccountCreated } ") ;
61
69
70
+
71
+ RecommendationType type = ( RecommendationType ) Enum . Parse ( typeof ( RecommendationType ) , context . Request . Query [ "recommendationType" ] ) ;
72
+ _logger . LogInformation ( "Success {engineType} recommendation for {assessmentId}." , type , 3 ) ;
73
+
74
+
62
75
await _next ( context ) ;
63
76
}
64
77
}
You can’t perform that action at this time.
0 commit comments