Compare commits

..

No commits in common. "da16d3f28e9de4c8e773ab5eb2d27af98cb980a8" and "315dc89b36eb63e3027c12e948b8e0a80b27fa06" have entirely different histories.

5 changed files with 27 additions and 25 deletions

View file

@ -90,7 +90,7 @@ public partial class ExecOperation : AsyncOperationBase
CommandResult result = await command.ExecuteAsync(cancellationToken);
this.logger.Debug(
"Execute non-buffered: {Command} {Arguments} = {ExitCode}",
"Execute: {Command} {Arguments} = {ExitCode}",
command.TargetFilePath,
command.Arguments,
result.ExitCode

View file

@ -1,10 +1,12 @@
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Feeds;
/// <summary>
/// A marker component that indicates this entity has a feed associated with
/// it.
/// </summary>
[SingletonComponent]
public partial class HasFeed { }
public class HasFeed
{
public HasFeed() { }
public static HasFeed Instance { get; } = new();
}

View file

@ -1,10 +1,10 @@
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Handlebars;
/// <summary>
/// A marker component that indicates that a given file with text component
/// has a Handlebars template in it.
/// </summary>
[SingletonComponent]
public partial class HasHandlebarsTemplate { }
public record HasHandlebarsTemplate
{
public static HasHandlebarsTemplate Instance { get; } = new();
}

View file

@ -1,9 +1,9 @@
using MfGames.Nitride.Generators;
namespace MfGames.Nitride.Yaml;
/// <summary>
/// A marker class that indicates that entity has a YAML model.
/// </summary>
[SingletonComponent]
public partial class HasYamlModel { }
public record HasYamlModel
{
public static HasYamlModel Instance { get; } = new();
}

View file

@ -24,9 +24,9 @@ public class LockTests
}
[Fact]
public async Task ReadBlocksWrite()
public void ReadBlocksWrite()
{
await Task.WhenAll(
Task.WaitAll(
Task.Run(() => this.TestRead(1, 5, 1)),
Task.Run(() => this.TestWrite(2, 2, 2))
);
@ -42,9 +42,9 @@ public class LockTests
}
[Fact]
public async Task ReadsDoNotBlockReads()
public void ReadsDoNotBlockReads()
{
await Task.WhenAll(
Task.WaitAll(
Task.Run(() => this.TestRead(1, 8, 1)),
Task.Run(() => this.TestRead(2, 1, 2)),
Task.Run(() => this.TestRead(4, 1, 3))
@ -64,9 +64,9 @@ public class LockTests
}
[Fact]
public async Task UpgradableBlocksUpgradable()
public void UpgradableBlocksUpgradable()
{
await Task.WhenAll(
Task.WaitAll(
Task.Run(() => this.TestUpgradable(1, 10, 1)),
Task.Run(() => this.TestUpgradable(2, 2, 2)),
Task.Run(() => this.TestUpgradable(5, 1, 3))
@ -86,9 +86,9 @@ public class LockTests
}
[Fact]
public async Task UpgradableDoesNotBlockReads()
public void UpgradableDoesNotBlockReads()
{
await Task.WhenAll(
Task.WaitAll(
Task.Run(() => this.TestUpgradable(1, 6, 1)),
Task.Run(() => this.TestRead(2, 1, 2)),
Task.Run(() => this.TestRead(4, 1, 3))
@ -108,9 +108,9 @@ public class LockTests
}
[Fact]
public async Task WriteBlockRead()
public void WriteBlockRead()
{
await Task.WhenAll(
Task.WaitAll(
Task.Run(() => this.TestWrite(1, 6, 1)),
Task.Run(() => this.TestRead(2, 1, 2))
);
@ -126,9 +126,9 @@ public class LockTests
}
[Fact]
public async Task WriteBlockReads()
public void WriteBlockReads()
{
await Task.WhenAll(
Task.WaitAll(
Task.Run(() => this.TestWrite(1, 6, 1)),
Task.Run(() => this.TestRead(2, 1, 2))
);