Skip to content

Commit

Permalink
Merge pull request #11 from AlonAm/master
Browse files Browse the repository at this point in the history
Update DIToolkitPackage.cs
  • Loading branch information
StevenRasmussen authored Sep 21, 2023
2 parents ee9b1ad + abfb168 commit 639e834
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core/Shared/DIToolkitPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ protected override async Task InitializeAsync(CancellationToken cancellationToke
.Where(x => typeof(BaseDICommand).IsAssignableFrom(x.ImplementationType))
.ToList();

await JoinableTaskFactory.SwitchToMainThreadAsync();

foreach (var command in commands)
{
var baseCommandTypeGeneric = typeof(CommandWrapper<>).MakeGenericType(command.ImplementationType);
Expand Down

0 comments on commit 639e834

Please sign in to comment.