title: DotnetCore : OnException method in a custom filter is called two times
body: <p>I am using dotnet core and have created a custom exception filter to handle exceptions. The problem i face is that in case of exceptions , the onException method in the custom filter is called two times. Below is the code : </p>
  
  <pre><code>   public class CustomExceptionFilter : ExceptionFilterAttribute
       {
              public override void OnException(ExceptionContext context)
                   {
                      // Code 
                      base.OnException(context);
                   }
       }
  </code></pre>
  
  <p>Controller Code is : </p>
  
  <pre><code>         [CustomExceptionFilter]   
           public class MyController : Controller
           {
               // Raise an exception in any apis
           }
  </code></pre>
  
  <p>Why onException is called two times?</p>