Added support for sync notification handlers in the event aggregator
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
// Copyright (c) Umbraco.
|
||||
// See LICENSE for more details.
|
||||
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Umbraco.Core.Events;
|
||||
using Umbraco.Core.Logging;
|
||||
@@ -46,7 +44,7 @@ namespace Umbraco.Web.Common.Profiler
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public Task HandleAsync(UmbracoApplicationStarting notification, CancellationToken cancellationToken)
|
||||
public void Handle(UmbracoApplicationStarting notification)
|
||||
{
|
||||
if (_profile)
|
||||
{
|
||||
@@ -57,8 +55,6 @@ namespace Umbraco.Web.Common.Profiler
|
||||
// Stop the profiling of the booting process
|
||||
_profiler.StopBoot();
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user