using MediatR; namespace Azaion.Common.Services; public class GPSMatcherEventHandler(IGpsMatcherService gpsMatcherService) : INotificationHandler, INotificationHandler { 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); }