Journals Now processed in own thread
Some invalid journal data is now handled Journals now use polymorphic deserialization Added Event names to all journal events Remove unused controllers
This commit is contained in:
parent
ae848e036d
commit
efd0b3e0c0
297 changed files with 826 additions and 208 deletions
|
|
@ -25,7 +25,7 @@ public class ShipyardService(ILogger<ShipyardService> logger, IOptions<PulsarCon
|
|||
return new ShipyardFile();
|
||||
}
|
||||
|
||||
public async Task HandleFile(string path)
|
||||
public async Task HandleFile(string path, CancellationToken token = new())
|
||||
{
|
||||
if (!FileHelper.ValidateFile(path))
|
||||
{
|
||||
|
|
@ -33,7 +33,7 @@ public class ShipyardService(ILogger<ShipyardService> logger, IOptions<PulsarCon
|
|||
}
|
||||
|
||||
var file = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
var shipyard = await JsonSerializer.DeserializeAsync<ShipyardFile>(file);
|
||||
var shipyard = await JsonSerializer.DeserializeAsync<ShipyardFile>(file, cancellationToken: token);
|
||||
|
||||
if (shipyard == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue