using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CallCenterApi.Filters
{
    public class ErrorAsyncExceptionFilter : IAsyncExceptionFilter
    {
        private readonly ILogger<ErrorAsyncExceptionFilter> _logger;

        public ErrorAsyncExceptionFilter(ILogger<ErrorAsyncExceptionFilter> logger)
        {
            _logger = logger;
        }

        public Task OnExceptionAsync(ExceptionContext context)
        {
            //_logger.LogError(context.Exception.Message);
            throw new NotImplementedException();
        }

    }
}
