mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:56:30 +00:00
fix bugs with UI for gps denied
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Azaion.Common.Services;
|
||||
|
||||
public class GPSMatcherEventHandler(IGpsMatcherService gpsMatcherService) :
|
||||
INotificationHandler<GPSMatcherResultEvent>,
|
||||
INotificationHandler<GPSMatcherFinishedEvent>
|
||||
{
|
||||
public async Task Handle(GPSMatcherResultEvent result, CancellationToken cancellationToken) =>
|
||||
await gpsMatcherService.SetGpsResult(result, cancellationToken);
|
||||
|
||||
public async Task Handle(GPSMatcherFinishedEvent notification, CancellationToken cancellationToken) =>
|
||||
await gpsMatcherService.FinishGPS(notification, cancellationToken);
|
||||
}
|
||||
Reference in New Issue
Block a user