Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
Adjust new Rx library
  • Loading branch information
b-straub committed Apr 20, 2024
1 parent 6d0e4fe commit 656967c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DexieNETCloudSample/Components/DBContainer.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[Inject]
public required IConfiguration Configuration { get; init; }

protected override async Task ServiceStateHasChangedAsync(ServiceChangeReason cr)
protected override async Task OnServiceStateHasChangedAsync(ServiceChangeReason cr)
{
switch (cr.ID)
{
Expand Down
6 changes: 3 additions & 3 deletions DexieNETCloudSample/Dexie/Services/ToDoItemService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public bool CanSubmit()
(Text.Value != item?.Text || dateNew != dateItem);
}

public Func<string, bool> CanUpdateText => _ =>
public Func<bool> CanUpdateText => () =>
{
return service.CanUpdate(service.CurrentList.Value, i => i.Text);
};

public Func<DateTime, bool> CanUpdateDueDate => _ =>
public Func<bool> CanUpdateDueDate => () =>
{
return service.CanUpdate(service.CurrentList.Value, i => i.DueDate);
};
Expand All @@ -65,7 +65,7 @@ public bool CanSubmit()
return new("DueDate can not be in the past!", dateNew < dateNowNS);
};

public Func<TimeSpan, bool> CanUpdateTime => _ =>
public Func<bool> CanUpdateTime => () =>
{
return service.CanUpdate(service.CurrentList.Value, i => i.DueDate);
};
Expand Down

0 comments on commit 656967c

Please sign in to comment.