Skip to content

Commit

Permalink
Merge pull request #448 from TimeWarpEngineering/Cramer/2024-07-23/Next
Browse files Browse the repository at this point in the history
remove Time Travel Support
  • Loading branch information
StevenTCramer authored Jul 23, 2024
2 parents 09c72c2 + 7f807dd commit 772a73e
Show file tree
Hide file tree
Showing 15 changed files with 171 additions and 273 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<!-- Set common properties regarding assembly information and nuget packages -->
<PropertyGroup>
<TimeWarpStateVersion>11.0.0-beta.63+8.0.303</TimeWarpStateVersion>
<TimeWarpStateVersion>11.0.0-beta.64+8.0.303</TimeWarpStateVersion>
<Authors>Steven T. Cramer</Authors>
<Product>TimeWarp State</Product>
<PackageVersion>$(TimeWarpStateVersion)</PackageVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ public static TimeWarpStateOptions UseReduxDevTools
serviceCollection.AddScoped<ReduxDevToolsInterop>();

serviceCollection.AddTransient<IRequestHandler<CommitRequest>, CommitHandler>();
serviceCollection.AddTransient<IRequestHandler<JumpToStateRequest>, JumpToStateHandler>();
serviceCollection.AddTransient<IRequestHandler<StartRequest>, StartHandler>();
serviceCollection.AddScoped(serviceProvider => (IReduxDevToolsStore)serviceProvider.GetRequiredService<IStore>());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CancellationToken cancellationToken
(
(ex, path, _, _) =>
{
Logger.LogDebug("Cloning error: {path} {Message}", path, ex.Message);
Logger.LogWarning("Cloning error: {path} {Message}", path, ex.Message);
}
);

Expand All @@ -75,7 +75,7 @@ CancellationToken cancellationToken
Logger.LogDebug
(
EventIds.StateTransactionBehavior_Cloning,
"Clone State of type {declaringType} originalState.Guid:{originalState_Guid} newState.Guid:{newState_Guid}",
"Cloned State of type {declaringType} originalState.Guid:{originalState_Guid} newState.Guid:{newState_Guid}",
enclosingStateType,
originalState.Guid,
newState.Guid
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
namespace TimeWarp.Features.ReduxDevTools;

Check warning on line 1 in Source/TimeWarp.State/Features/ReduxDevTools/Components/TimeWarpStateDevComponent.cs

View workflow job for this annotation

GitHub Actions / Qodana for .NET

Namespace does not correspond to file location

Namespace does not correspond to file location, must be: 'TimeWarp.State.Features.ReduxDevTools.Components'

/// <summary>
/// Base implementation of IDevToolsComponent. Required for TimeTravel in ReduxDevTools
/// Adds a RenderModeDisplay RenderFragment to the TimeWarpStateComponent
/// </summary>
/// <remarks>See Peter Morris Issue on Blazor
/// https://github.com/aspnet/Blazor/issues/704
/// If one implements their own base class with these interfaces
/// They won't be forced to use this one.
/// C# 8 with default implementations of interfaces will be quite tempting to solve this.
/// </remarks>
public class TimeWarpStateDevToolsComponent : TimeWarpStateComponent,
IDevToolsComponent
public class TimeWarpStateDevComponent : TimeWarpStateComponent
{
protected readonly RenderFragment RenderModeDisplay;
protected override void OnInitialized()
{
base.OnInitialized();
Subscriptions.Add<IDevToolsComponent>(this);
}

protected string RenderModeDisplayString => $"CurrentRenderMode: {CurrentRenderMode}\nConfiguredRenderMode: {ConfiguredRenderMode}";
protected TimeWarpStateDevToolsComponent()
protected TimeWarpStateDevComponent()
{
RenderModeDisplay = builder =>
{
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ public class ReduxDevToolsInterop
private readonly ReduxDevToolsOptions ReduxDevToolsOptions;

private bool IsInitialized;

private bool IsEnabled { get; set; }

private bool IsEnabled;

public ReduxDevToolsInterop
(
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 772a73e

Please sign in to comment.