Skip to content

Commit

Permalink
Merge pull request #10 from KristofferStrube/feature/event-create-asy…
Browse files Browse the repository at this point in the history
…nc-implementation

Added implementation for CreateAsync for Event.
  • Loading branch information
KristofferStrube authored Oct 23, 2024
2 parents 459cb88 + 51a7923 commit c3fcb2c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/KristofferStrube.Blazor.DOM/Events/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ namespace KristofferStrube.Blazor.DOM;
public class Event : BaseJSWrapper, IJSCreatable<Event>
{
/// <inheritdoc/>
public static Task<Event> CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference)
public static async Task<Event> CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference)
{
Event eventInstance = new(jSRuntime, jSReference, new());
return Task.FromResult(eventInstance);
return await CreateAsync(jSRuntime, jSReference, new());
}

/// <inheritdoc/>
public static Task<Event> CreateAsync(IJSRuntime jSRuntime, IJSObjectReference jSReference, CreationOptions options)
{
throw new NotImplementedException();
return Task.FromResult(new Event(jSRuntime, jSReference, options));
}

/// <summary>
Expand Down

0 comments on commit c3fcb2c

Please sign in to comment.