Skip to content

Commit 1e050f1

Browse files
committed
Update NuGet packages and switch to ValidateAsync for forms
Upgraded key dependencies (MudBlazor, Fusion, MediatR, OpenAI, test SDKs) to latest versions. Refactored Blazor components to use MudBlazor's new ValidateAsync method for form validation, ensuring compatibility with MudBlazor 9.1.0.
1 parent 5b3a2f5 commit 1e050f1

18 files changed

Lines changed: 23 additions & 23 deletions

File tree

src/Application/Application.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.7.1" />
2525
<PackageReference Include="Hangfire.Core" Version="1.8.23" />
2626
<PackageReference Include="ZiggyCreatures.FusionCache" Version="2.5.0" />
27-
<PackageReference Include="ActualLab.Fusion" Version="12.1.61" />
28-
<PackageReference Include="ActualLab.Fusion.Blazor" Version="12.1.61" />
29-
<PackageReference Include="ActualLab.Generators" Version="12.1.61">
27+
<PackageReference Include="ActualLab.Fusion" Version="12.1.89" />
28+
<PackageReference Include="ActualLab.Fusion.Blazor" Version="12.1.89" />
29+
<PackageReference Include="ActualLab.Generators" Version="12.1.89">
3030
<PrivateAssets>all</PrivateAssets>
3131
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3232
</PackageReference>

src/Domain/Domain.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="MediatR" Version="14.0.0" />
13+
<PackageReference Include="MediatR" Version="14.1.0" />
1414
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="10.0.3" />
1515
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.3" />
1616
<PackageReference Include="EntityFrameworkCore.Exceptions.PostgreSQL" Version="8.1.3" />

src/Infrastructure/Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.0.0-rc2" />
12-
<PackageReference Include="OpenAI" Version="2.8.0" />
12+
<PackageReference Include="OpenAI" Version="2.9.1" />
1313
<PackageReference Include="Microsoft.AspNetCore.Authentication.Facebook" Version="10.0.3" />
1414
<PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="10.0.3" />
1515
<PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="10.0.3" />

src/Server.UI/Pages/Contacts/Components/ContactFormDialog.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
try
4949
{
5050
_saving = true;
51-
await _form!.Validate().ConfigureAwait(false);
51+
await _form!.ValidateAsync();
5252
if (!_form!.IsValid)
5353
return;
5454
var result = await Mediator.Send(model);
@@ -73,7 +73,7 @@
7373
try
7474
{
7575
_savingnew = true;
76-
await _form!.Validate().ConfigureAwait(false);
76+
await _form!.ValidateAsync();
7777
if (!_form!.IsValid)
7878
return;
7979
var result = await Mediator.Send(model);

src/Server.UI/Pages/Contacts/CreateContact.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
try
6565
{
6666
_saving = true;
67-
await _form!.Validate().ConfigureAwait(false);
67+
await _form!.ValidateAsync();
6868
if (!_form!.IsValid)
6969
return;
7070
var result = await Mediator.Send(model);

src/Server.UI/Pages/Contacts/EditContact.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
try
8787
{
8888
_saving = true;
89-
await _form!.Validate().ConfigureAwait(false);
89+
await _form!.ValidateAsync();
9090
if (!_form!.IsValid)
9191
return;
9292
var result = await Mediator.Send(model);

src/Server.UI/Pages/Documents/Components/DocumentFormDialog.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
private async Task Submit()
8888
{
89-
await _form!.Validate();
89+
await _form!.ValidateAsync();
9090
if (_form!.IsValid)
9191
{
9292
MudDialog.Close(DialogResult.Ok(true));

src/Server.UI/Pages/Identity/Roles/Components/RoleFormDialog.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
private async Task Submit()
5454
{
55-
await _form!.Validate();
55+
await _form!.ValidateAsync();
5656
if (_form!.IsValid)
5757
{
5858
MudDialog.Close(DialogResult.Ok(true));

src/Server.UI/Pages/Identity/Users/Components/ResetPasswordDialog.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
private async Task Submit()
4646
{
47-
await _form!.Validate();
47+
await _form!.ValidateAsync();
4848
if (_form.IsValid)
4949
{
5050
MudDialog.Close(DialogResult.Ok(true));

src/Server.UI/Pages/Identity/Users/Components/UserForm.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
{
205205
if (_form is not null)
206206
{
207-
await _form.Validate();
207+
await _form.ValidateAsync();
208208
if (_form.IsValid)
209209
{
210210
Model.AssignedRoles = Roles.Where(x => x.Value).Select(x => x.Key).ToArray();

0 commit comments

Comments
 (0)