-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from NerosoftDev/develop
Develop
- Loading branch information
Showing
47 changed files
with
365 additions
and
766 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
10 changes: 0 additions & 10 deletions
10
Source/Starfish.Service/Application/Commands/Identity/AdministratorAssignCommand.cs
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
Source/Starfish.Service/Application/Commands/Identity/AdministratorDeleteCommand.cs
This file was deleted.
Oops, something went wrong.
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
15 changes: 0 additions & 15 deletions
15
Source/Starfish.Service/Application/Contracts/IAdministratorApplicationService.cs
This file was deleted.
Oops, something went wrong.
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
49 changes: 0 additions & 49 deletions
49
Source/Starfish.Service/Application/Handlers/AdministratorCommandHandler.cs
This file was deleted.
Oops, something went wrong.
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
46 changes: 0 additions & 46 deletions
46
Source/Starfish.Service/Application/Implements/AdministratorApplicationService.cs
This file was deleted.
Oops, something went wrong.
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
28 changes: 28 additions & 0 deletions
28
Source/Starfish.Service/Application/Services/UserInitializeService.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.Extensions.Hosting; | ||
using Microsoft.Extensions.Logging; | ||
|
||
namespace Nerosoft.Starfish.Application; | ||
|
||
internal class UserInitializeService : BackgroundService | ||
{ | ||
private readonly IUserApplicationService _service; | ||
private readonly ILogger<UserInitializeService> _logger; | ||
|
||
public UserInitializeService(IUserApplicationService service, ILoggerFactory logger) | ||
{ | ||
_service = service; | ||
_logger = logger.CreateLogger<UserInitializeService>(); | ||
} | ||
|
||
protected override async Task ExecuteAsync(CancellationToken stoppingToken) | ||
{ | ||
try | ||
{ | ||
await _service.InitializeAsync(stoppingToken); | ||
} | ||
catch (Exception exception) | ||
{ | ||
_logger.LogError(exception, exception.Message); | ||
} | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
Source/Starfish.Service/Domain/Aggregates/Administrator.cs
This file was deleted.
Oops, something went wrong.
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.