-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update code to use C# 12 primary constructors (#220)
### Summary & Motivation Refactoring applicable constructors across the project to leverage the new C# 12 primary constructors. This change simplifies the constructor syntax and enhances code readability and maintainability. Additionally, the formatting of existing type declarations has been standardized to ensure consistency throughout the codebase. ### Checklist - [x] I have added a Label to the pull-request - [x] I have added tests, and done manual regression tests - [x] I have updated the documentation, if necessary
- Loading branch information
Showing
20 changed files
with
68 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 3 additions & 9 deletions
12
application/account-management/Application/Tenants/TenantCreatedEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
namespace PlatformPlatform.AccountManagement.Application.Tenants; | ||
|
||
[UsedImplicitly] | ||
public sealed class TenantCreatedEventHandler : INotificationHandler<TenantCreatedEvent> | ||
public sealed class TenantCreatedEventHandler(ILogger<TenantCreatedEventHandler> logger) | ||
: INotificationHandler<TenantCreatedEvent> | ||
{ | ||
private readonly ILogger<TenantCreatedEventHandler> _logger; | ||
|
||
public TenantCreatedEventHandler(ILogger<TenantCreatedEventHandler> logger) | ||
{ | ||
_logger = logger; | ||
} | ||
|
||
public Task Handle(TenantCreatedEvent notification, CancellationToken cancellationToken) | ||
{ | ||
_logger.LogInformation("Raise event to send Welcome mail to tenant"); | ||
logger.LogInformation("Raise event to send Welcome mail to tenant"); | ||
return Task.CompletedTask; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.