Skip to content

Commit

Permalink
Merge pull request #424 from TimeWarpEngineering/Cramer/2024-06-23/Next
Browse files Browse the repository at this point in the history
Serialization
  • Loading branch information
StevenTCramer authored Jun 23, 2024
2 parents 50bd4a0 + 8982bb6 commit b68b89a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Authors>Steven T. Cramer</Authors>
<Product>TimeWarp State</Product>
<PackageVersion>11.0.0-beta.40+8.0.300</PackageVersion>
<PackageVersion>11.0.0-beta.41+8.0.300</PackageVersion>
<PackageProjectUrl>https://timewarpengineering.github.io/blazor-state/</PackageProjectUrl>
<PackageTags>TimeWarp.State; TimeWarp-State; TimeWarpState; BlazorState; Blazor; State; Blazor-State; MediatR; Mediator; Pipeline; Redux; Flux</PackageTags>
<PackageIcon>Logo.png</PackageIcon>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<PrivateAssets>all</PrivateAssets>
</PackageVersion>
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.10.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.1" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing" Version="1.1.2" />
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.10.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.10.0" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
Expand All @@ -39,7 +39,7 @@
<PackageVersion Include="Microsoft.Playwright" Version="1.19.1" />
<PackageVersion Include="Microsoft.Playwright.NUnit" Version="1.44.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="Microsoft.TypeScript.MSBuild" Version="5.4.5" />
<PackageVersion Include="Microsoft.TypeScript.MSBuild" Version="5.5.2" />
<PackageVersion Include="NUnit" Version="4.1.0" />
<PackageVersion Include="NUnit.Analyzers" Version="4.2.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
Expand Down
4 changes: 4 additions & 0 deletions Source/TimeWarp.State/State/State.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
namespace TimeWarp.State;

using System.Text.Json.Serialization;

public abstract class State<TState> : IState<TState>
{
[IgnoreDataMember]
public Guid Guid { get; protected init; } = Guid.NewGuid();

[JsonIgnore]
public SemaphoreSlim Semaphore { get; } = new(1, 1);

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- Arrange -->
<!-- Test description -->
<p>
The StateTransactionBehavior middleware in Blazor-State is designed to use ICloneable if it is implemented and Anyclone otherwise..<br>
The StateTransactionBehavior middleware in TimeWarp.State is designed to use ICloneable if it is implemented and Anyclone otherwise..<br>
This test is to verify that the IClonable interface is working as expected.<br>
The clone method intentionally creates a new instance where the count is always 42.<br>
And the Increment method increments the count by 1.<br>
Expand Down

0 comments on commit b68b89a

Please sign in to comment.