diff --git a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain.Test/BookBorrowing.Domain.Test.csproj b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain.Test/BookBorrowing.Domain.Test.csproj index 7dfeaa8c..79705dc9 100644 --- a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain.Test/BookBorrowing.Domain.Test.csproj +++ b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain.Test/BookBorrowing.Domain.Test.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 enable enable @@ -12,8 +12,8 @@ - - + + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/ChangeBorrowerName.cs b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/ChangeBorrowerName.cs index ddf7cb41..6b1c20a9 100644 --- a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/ChangeBorrowerName.cs +++ b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/ChangeBorrowerName.cs @@ -7,9 +7,8 @@ namespace BookBorrowing.Domain.Aggregates.Borrowers.Commands; public record ChangeBorrowerName(Guid BorrowerId, Name ChangedName, string Reason) : ICommandWithHandler { - public Guid GetAggregateId() => BorrowerId; - public static ResultBox HandleCommand( - ChangeBorrowerName command, - ICommandContext context) => context.AppendEvent( + public static Guid SpecifyAggregateId(ChangeBorrowerName command) => command.BorrowerId; + + public static ResultBox> HandleCommand(ChangeBorrowerName command, ICommandContext context) => context.AppendEvent( new BorrowerNameUpdated(command.ChangedName, command.Reason)); } diff --git a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/CreateBorrower.cs b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/CreateBorrower.cs index 4051646d..4d0e2f8d 100644 --- a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/CreateBorrower.cs +++ b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/Aggregates/Borrowers/Commands/CreateBorrower.cs @@ -4,19 +4,14 @@ using Sekiban.Core.Command; namespace BookBorrowing.Domain.Aggregates.Borrowers.Commands; -public record CreateBorrower( - BorrowerCardNo BorrowerCardNo, - Name Name, - PhoneNumber PhoneNumber, - Email Email) : ICommandWithHandler +public record CreateBorrower(BorrowerCardNo BorrowerCardNo, Name Name, PhoneNumber PhoneNumber, Email Email) + : ICommandWithHandler { - public Guid GetAggregateId() => Guid.NewGuid(); - public static ResultBox HandleCommand( + public static Guid SpecifyAggregateId(CreateBorrower command) => Guid.NewGuid(); + + public static ResultBox> HandleCommand( CreateBorrower command, - ICommandContext context) => context.AppendEvent( - new BorrowerCreated( - command.BorrowerCardNo, - command.Name, - command.PhoneNumber, - command.Email)); + ICommandContext context) => + EventOrNone.Event( + new BorrowerCreated(command.BorrowerCardNo, command.Name, command.PhoneNumber, command.Email)); } diff --git a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/BookBorrowing.Domain.csproj b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/BookBorrowing.Domain.csproj index 5fdbf5ce..6e20e784 100644 --- a/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/BookBorrowing.Domain.csproj +++ b/Samples/Tutorials/1.GetStarted/BookBorrowing.Domain/BookBorrowing.Domain.csproj @@ -1,14 +1,14 @@  - net8.0 + net9.0 enable enable preview - + diff --git a/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Cosmos/BookBorrowing.Web.Cosmos.csproj b/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Cosmos/BookBorrowing.Web.Cosmos.csproj index dbb2291d..7db008dd 100644 --- a/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Cosmos/BookBorrowing.Web.Cosmos.csproj +++ b/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Cosmos/BookBorrowing.Web.Cosmos.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 enable enable true @@ -10,10 +10,10 @@ - - - - + + + + diff --git a/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Dynamo/BookBorrowing.Web.Dynamo.csproj b/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Dynamo/BookBorrowing.Web.Dynamo.csproj index d0a03b40..0402d80a 100644 --- a/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Dynamo/BookBorrowing.Web.Dynamo.csproj +++ b/Samples/Tutorials/1.GetStarted/BookBorrowing.Web.Dynamo/BookBorrowing.Web.Dynamo.csproj @@ -11,7 +11,7 @@ - + diff --git a/Samples/Tutorials/1.GetStarted/GetStarted.sln.DotSettings b/Samples/Tutorials/1.GetStarted/GetStarted.sln.DotSettings new file mode 100644 index 00000000..adb6ee2f --- /dev/null +++ b/Samples/Tutorials/1.GetStarted/GetStarted.sln.DotSettings @@ -0,0 +1,327 @@ + + HINT + HINT + HINT + True + Required + NotRequired + Required + False + ExpressionBody + ExpressionBody + ExpressionBody + public protected private virtual file override internal static sealed readonly async abstract extern unsafe volatile new required + Remove + 0 + True + False + False + True + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 100 + 100 + True + True + True + True + True + False + True + 4 + 5 + 4 + COMPACT + False + NEVER + True + False + ALWAYS + ALWAYS + NEVER + True + True + False + NEVER + False + True + True + False + False + True + True + True + True + CHOP_IF_LONG + CHOP_IF_LONG + True + True + CHOP_IF_LONG + CHOP_IF_LONG + CHOP_IF_LONG + WRAP_IF_LONG + CHOP_IF_LONG + 120 + CHOP_ALWAYS + CHOP_IF_LONG + CHOP_ALWAYS + CHOP_IF_LONG + <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> + <TypePattern DisplayName="Non-reorderable types"> + <TypePattern.Match> + <Or> + <And> + <Kind Is="Interface" /> + <Or> + <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> + <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> + </Or> + </And> + <Kind Is="Struct" /> + <HasAttribute Name="JetBrains.Annotations.NoReorderAttribute" /> + <HasAttribute Name="JetBrains.Annotations.NoReorder" /> + </Or> + </TypePattern.Match> + </TypePattern> + + <TypePattern DisplayName="xUnit.net Test Classes" RemoveRegions="All"> + <TypePattern.Match> + <And> + <Kind Is="Class" /> + <HasMember> + <And> + <Kind Is="Method" /> + <HasAttribute Name="Xunit.FactAttribute" Inherited="True" /> + <HasAttribute Name="Xunit.TheoryAttribute" Inherited="True" /> + </And> + </HasMember> + </And> + </TypePattern.Match> + + <Entry DisplayName="Setup/Teardown Methods"> + <Entry.Match> + <Or> + <Kind Is="Constructor" /> + <And> + <Kind Is="Method" /> + <ImplementsInterface Name="System.IDisposable" /> + </And> + </Or> + </Entry.Match> + + <Entry.SortBy> + <Kind> + <Kind.Order> + <DeclarationKind>Constructor</DeclarationKind> + </Kind.Order> + </Kind> + </Entry.SortBy> + </Entry> + + + <Entry DisplayName="All other members" /> + + <Entry DisplayName="Test Methods" Priority="100"> + <Entry.Match> + <And> + <Kind Is="Method" /> + <HasAttribute Name="Xunit.FactAttribute" Inherited="false" /> + <HasAttribute Name="Xunit.TheoryAttribute" Inherited="false" /> + </And> + </Entry.Match> + + <Entry.SortBy> + <Name /> + </Entry.SortBy> + </Entry> + </TypePattern> + + <TypePattern DisplayName="NUnit Test Fixtures" RemoveRegions="All"> + <TypePattern.Match> + <And> + <Kind Is="Class" /> + <Or> + <HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="true" /> + <HasAttribute Name="NUnit.Framework.TestFixtureSourceAttribute" Inherited="true" /> + <HasMember> + <And> + <Kind Is="Method" /> + <HasAttribute Name="NUnit.Framework.TestAttribute" Inherited="false" /> + <HasAttribute Name="NUnit.Framework.TestCaseAttribute" Inherited="false" /> + <HasAttribute Name="NUnit.Framework.TestCaseSourceAttribute" Inherited="false" /> + </And> + </HasMember> + </Or> + </And> + </TypePattern.Match> + + <Entry DisplayName="Setup/Teardown Methods"> + <Entry.Match> + <And> + <Kind Is="Method" /> + <Or> + <HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="true" /> + <HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="true" /> + <HasAttribute Name="NUnit.Framework.TestFixtureSetUpAttribute" Inherited="true" /> + <HasAttribute Name="NUnit.Framework.TestFixtureTearDownAttribute" Inherited="true" /> + <HasAttribute Name="NUnit.Framework.OneTimeSetUpAttribute" Inherited="true" /> + <HasAttribute Name="NUnit.Framework.OneTimeTearDownAttribute" Inherited="true" /> + </Or> + </And> + </Entry.Match> + </Entry> + + <Entry DisplayName="All other members" /> + + <Entry DisplayName="Test Methods" Priority="100"> + <Entry.Match> + <And> + <Kind Is="Method" /> + <HasAttribute Name="NUnit.Framework.TestAttribute" Inherited="false" /> + <HasAttribute Name="NUnit.Framework.TestCaseAttribute" Inherited="false" /> + <HasAttribute Name="NUnit.Framework.TestCaseSourceAttribute" Inherited="false" /> + </And> + </Entry.Match> + + <Entry.SortBy> + <Name /> + </Entry.SortBy> + </Entry> + </TypePattern> + + <TypePattern DisplayName="Default Pattern"> + <Entry DisplayName="Public Delegates" Priority="100"> + <Entry.Match> + <And> + <Access Is="Public" /> + <Kind Is="Delegate" /> + </And> + </Entry.Match> + + <Entry.SortBy> + <Name /> + </Entry.SortBy> + </Entry> + + <Entry DisplayName="Public Enums" Priority="100"> + <Entry.Match> + <And> + <Access Is="Public" /> + <Kind Is="Enum" /> + </And> + </Entry.Match> + + <Entry.SortBy> + <Name /> + </Entry.SortBy> + </Entry> + + <Entry DisplayName="Static Fields and Constants"> + <Entry.Match> + <Or> + <Kind Is="Constant" /> + <And> + <Kind Is="Field" /> + <Static /> + </And> + </Or> + </Entry.Match> + + <Entry.SortBy> + <Kind> + <Kind.Order> + <DeclarationKind>Constant</DeclarationKind> + <DeclarationKind>Field</DeclarationKind> + </Kind.Order> + </Kind> + </Entry.SortBy> + </Entry> + + <Entry DisplayName="Fields"> + <Entry.Match> + <And> + <Kind Is="Field" /> + <Not> + <Static /> + </Not> + </And> + </Entry.Match> + + <Entry.SortBy> + <Readonly /> + <Name /> + </Entry.SortBy> + </Entry> + <Entry DisplayName="Properties, Indexers"> + <Entry.Match> + <Or> + <Kind Is="Property" /> + <Kind Is="Indexer" /> + </Or> + </Entry.Match> + </Entry> + <Entry DisplayName="Constructors"> + <Entry.Match> + <Kind Is="Constructor" /> + </Entry.Match> + + <Entry.SortBy> + <Static/> + </Entry.SortBy> + </Entry> + + + + <Entry DisplayName="Interface Implementations" Priority="100"> + <Entry.Match> + <And> + <Kind Is="Member" /> + <ImplementsInterface /> + </And> + </Entry.Match> + + <Entry.SortBy> + <ImplementsInterface Immediate="true" /> + </Entry.SortBy> + </Entry> + + <Entry DisplayName="All other members" /> + + <Entry DisplayName="Nested Types"> + <Entry.Match> + <Kind Is="Type" /> + </Entry.Match> + </Entry> + </TypePattern> +</Patterns> + + False + <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /> + <Policy><Descriptor Staticness="Instance" AccessRightKinds="Private" Description="Instance fields (private)"><ElementKinds><Kind Name="FIELD" /><Kind Name="READONLY_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" /></Policy> + + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True \ No newline at end of file diff --git a/src/MemStat.Net/MemStat.Net.csproj b/src/MemStat.Net/MemStat.Net.csproj index 82c4e594..16b36b69 100644 --- a/src/MemStat.Net/MemStat.Net.csproj +++ b/src/MemStat.Net/MemStat.Net.csproj @@ -5,11 +5,11 @@ enable enable MemStat.Net - 0.1.1 + 0.1.2 J-Tech Group J-Tech-Japan MemStat - Get Memory Usage Stats in Multi Platform - 0.1.1 + 0.1.2 Initial Release https://github.com/J-Tech-Japan/Sekiban MemStat.Net diff --git a/src/Sekiban.Aspire.Infrastructure.Cosmos/Sekiban.Aspire.Infrastructure.Cosmos.csproj b/src/Sekiban.Aspire.Infrastructure.Cosmos/Sekiban.Aspire.Infrastructure.Cosmos.csproj index c425cd85..8d536f77 100644 --- a/src/Sekiban.Aspire.Infrastructure.Cosmos/Sekiban.Aspire.Infrastructure.Cosmos.csproj +++ b/src/Sekiban.Aspire.Infrastructure.Cosmos/Sekiban.Aspire.Infrastructure.Cosmos.csproj @@ -5,11 +5,11 @@ enable enable Sekiban.Aspire.Infrastructure.Cosmos - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework Cosmos Aspire Connector - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# https://github.com/J-Tech-Japan/Sekiban Sekiban.Aspire.Infrastructure.Cosmos @@ -23,8 +23,8 @@ - - + + diff --git a/src/Sekiban.Core/Sekiban.Core.csproj b/src/Sekiban.Core/Sekiban.Core.csproj index 8fdc55ca..b6d514e1 100644 --- a/src/Sekiban.Core/Sekiban.Core.csproj +++ b/src/Sekiban.Core/Sekiban.Core.csproj @@ -5,12 +5,12 @@ enable preview Sekiban.Core - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework Core https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# Sekiban.Core Sekiban.Core diff --git a/src/Sekiban.Infrastructure.Aws.S3/Sekiban.Infrastructure.Aws.S3.csproj b/src/Sekiban.Infrastructure.Aws.S3/Sekiban.Infrastructure.Aws.S3.csproj index 34ea0eb7..f3d6d243 100644 --- a/src/Sekiban.Infrastructure.Aws.S3/Sekiban.Infrastructure.Aws.S3.csproj +++ b/src/Sekiban.Infrastructure.Aws.S3/Sekiban.Infrastructure.Aws.S3.csproj @@ -4,12 +4,12 @@ enable enable Sekiban.Infrastructure.Aws.S3 - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework AWS S3 Infrastructure https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# preview true @@ -22,7 +22,7 @@ - + diff --git a/src/Sekiban.Infrastructure.Azure.Storage.Blobs/Sekiban.Infrastructure.Azure.Storage.Blobs.csproj b/src/Sekiban.Infrastructure.Azure.Storage.Blobs/Sekiban.Infrastructure.Azure.Storage.Blobs.csproj index 51f80fa7..2412b749 100644 --- a/src/Sekiban.Infrastructure.Azure.Storage.Blobs/Sekiban.Infrastructure.Azure.Storage.Blobs.csproj +++ b/src/Sekiban.Infrastructure.Azure.Storage.Blobs/Sekiban.Infrastructure.Azure.Storage.Blobs.csproj @@ -4,12 +4,12 @@ enable enable Sekiban.Infrastructure.Azure.Storage.Blobs - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework Azure Storage Blob https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# net8.0;net9.0 preview @@ -24,7 +24,7 @@ - + diff --git a/src/Sekiban.Infrastructure.Cosmos/Sekiban.Infrastructure.Cosmos.csproj b/src/Sekiban.Infrastructure.Cosmos/Sekiban.Infrastructure.Cosmos.csproj index 3b9976e8..88818868 100644 --- a/src/Sekiban.Infrastructure.Cosmos/Sekiban.Infrastructure.Cosmos.csproj +++ b/src/Sekiban.Infrastructure.Cosmos/Sekiban.Infrastructure.Cosmos.csproj @@ -4,12 +4,12 @@ enable enable Sekiban.Infrastructure.Cosmos - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework CosmosInfrastructure https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# net8.0;net9.0 preview @@ -21,11 +21,11 @@ - + - - + + diff --git a/src/Sekiban.Infrastructure.Dynamo/Sekiban.Infrastructure.Dynamo.csproj b/src/Sekiban.Infrastructure.Dynamo/Sekiban.Infrastructure.Dynamo.csproj index 67ad3def..47ce0c7f 100644 --- a/src/Sekiban.Infrastructure.Dynamo/Sekiban.Infrastructure.Dynamo.csproj +++ b/src/Sekiban.Infrastructure.Dynamo/Sekiban.Infrastructure.Dynamo.csproj @@ -4,12 +4,12 @@ enable enable Sekiban.Infrastructure.Dynamo - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework Dynamo Infrastructure https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# net8.0;net9.0 preview @@ -21,8 +21,8 @@ - - + + diff --git a/src/Sekiban.Infrastructure.Postgres/Sekiban.Infrastructure.Postgres.csproj b/src/Sekiban.Infrastructure.Postgres/Sekiban.Infrastructure.Postgres.csproj index 3197ae6b..50f8d447 100644 --- a/src/Sekiban.Infrastructure.Postgres/Sekiban.Infrastructure.Postgres.csproj +++ b/src/Sekiban.Infrastructure.Postgres/Sekiban.Infrastructure.Postgres.csproj @@ -5,12 +5,12 @@ enable net8.0;net9.0 Sekiban.Infrastructure.Postgres - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework Dynamo Infrastructure https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# preview true diff --git a/src/Sekiban.Testing/Sekiban.Testing.csproj b/src/Sekiban.Testing/Sekiban.Testing.csproj index 10acd47a..c45f49bc 100644 --- a/src/Sekiban.Testing/Sekiban.Testing.csproj +++ b/src/Sekiban.Testing/Sekiban.Testing.csproj @@ -5,12 +5,12 @@ enable preview Sekiban.Testing - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework Testing https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# Sekiban.Testing Sekiban.Testing @@ -24,7 +24,7 @@ - + diff --git a/src/Sekiban.Web/Sekiban.Web.csproj b/src/Sekiban.Web/Sekiban.Web.csproj index 0f3ed999..ec9ff5f0 100644 --- a/src/Sekiban.Web/Sekiban.Web.csproj +++ b/src/Sekiban.Web/Sekiban.Web.csproj @@ -5,12 +5,12 @@ enable Library Sekiban.Web - 0.22.0-preview6 + 0.22.0-preview7 J-Tech Group J-Tech-Japan Sekiban - Event Sourcing Framework WebHelper https://github.com/J-Tech-Japan/Sekiban - 0.22.0-preview6 + 0.22.0-preview7 Beta Support for F# net8.0;net9.0 preview @@ -22,7 +22,7 @@ - +