-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
…on-registy 🔧 refactor: interfacing policy action registy
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Collections.Immutable; | ||
|
||
namespace Libplanet.Action | ||
{ | ||
public interface IPolicyActionsRegistry | ||
{ | ||
/// <summary> | ||
/// An array of <see cref="IAction"/> to execute and be rendered at the beginning | ||
/// for every block, if any.</summary> | ||
ImmutableArray<IAction> BeginBlockActions | ||
{ | ||
get; | ||
} | ||
Check warning on line 13 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 13 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 13 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 13 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 13 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
|
||
/// <summary> | ||
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 14 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (macOS, self-hosted, ARM64)
|
||
/// An array of <see cref="IAction"/> to execute and be rendered at the end | ||
/// for every block, if any.</summary> | ||
ImmutableArray<IAction> EndBlockActions | ||
{ | ||
get; | ||
} | ||
Check warning on line 20 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 20 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 20 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 20 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 20 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
|
||
/// <summary> | ||
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 21 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (macOS, self-hosted, ARM64)
|
||
/// An array of <see cref="IAction"/> to execute and be rendered at the beginning | ||
/// for every transaction, if any.</summary> | ||
ImmutableArray<IAction> BeginTxActions | ||
{ | ||
get; | ||
} | ||
Check warning on line 27 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 27 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 27 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 27 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 27 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
|
||
/// <summary> | ||
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / check-build
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / docs
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (linux-8cores)
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (windows-8cores)
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / build
Check warning on line 28 in src/Libplanet.Action/IPolicyActionsRegistry.cs GitHub Actions / Run Benchmark.Net benchmarks (macOS, self-hosted, ARM64)
|
||
/// An array of <see cref="IAction"/> to execute and be rendered at the end | ||
/// for every transaction, if any.</summary> | ||
ImmutableArray<IAction> EndTxActions | ||
{ | ||
get; | ||
} | ||
} | ||
} |