File tree Expand file tree Collapse file tree
Applications/Backend/Source/HttpsRichardy.Federation.Application/Handlers/Realm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11namespace HttpsRichardy . Federation . Application . Handlers . Realm ;
22
3- public sealed class RealmCreationHandler ( IRealmCollection collection , IClientCredentialsGenerator credentialsGenerator ) :
3+ public sealed class RealmCreationHandler (
4+ IRealmCollection collection ,
5+ IClientCredentialsGenerator credentialsGenerator ,
6+ ISecretRotationService secretRotationService ) :
47 IDispatchHandler < RealmCreationScheme , Result < RealmDetailsScheme > >
58{
69 public async Task < Result < RealmDetailsScheme > > HandleAsync (
@@ -31,6 +34,7 @@ public async Task<Result<RealmDetailsScheme>> HandleAsync(
3134 . ToList ( ) ;
3235
3336 await collection . InsertAsync ( realm , cancellation : cancellation ) ;
37+ await secretRotationService . EnsureSecretExistsAsync ( realm , cancellation ) ;
3438
3539 return Result < RealmDetailsScheme > . Success ( RealmMapper . AsResponse ( realm ) ) ;
3640 }
You can’t perform that action at this time.
0 commit comments