Skip to content

Commit

Permalink
await for RemoveFileEntry
Browse files Browse the repository at this point in the history
  • Loading branch information
stsrki committed Feb 25, 2025
1 parent 615ae4e commit a0df438
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Source/Blazorise/Utilities/IO/IFileEntryOwner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Threading.Tasks;
using Blazorise.Modules;
using Microsoft.AspNetCore.Components;

#endregion

namespace Blazorise;
Expand Down Expand Up @@ -37,19 +36,18 @@ public interface IFileEntryOwner
/// <param name="fileEntryId"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
Task RemoveFileEntry( int fileEntryId, CancellationToken cancellationToken = default )
async Task RemoveFileEntry( int fileEntryId, CancellationToken cancellationToken = default )
{
JSFileModule.RemoveFileEntry( ElementRef, fileEntryId );
return Task.CompletedTask;
await JSFileModule.RemoveFileEntry( ElementRef, fileEntryId );
}

/// <summary>
/// ElementReference from BaseComponent
/// Element reference.
/// </summary>
ElementReference ElementRef { get; set; }

/// <summary>
/// JSFileModule
/// JS file module.
/// </summary>
IJSFileModule JSFileModule { get; set; }
}

0 comments on commit a0df438

Please sign in to comment.