Sakura.AspNetCore.Extensions/Sakura.AspNetCore.Mvc.ActionResultExceptionExtensions/ServiceExtensions.cs
/// <summary>
///     Add <see cref="EnableActionResultExceptionAttribute" /> as a exception filter in the
///     <paramref name="filterCollection" />.
/// </summary>
/// <param name="filterCollection">The <see cref="FilterCollection" /> object.</param>
/// <exception cref="ArgumentNullException">The <paramref name="filterCollection" /> is <c>null</c>.</exception>
Add  as a exception filter in the
.
Add as a exception filter in the .
public static void EnableActionResultExceptionFilter(this FilterCollection filterCollection)
		{
			if (filterCollection == null)
				throw new ArgumentNullException(nameof(filterCollection));
			filterCollection.Add(typeof(EnableActionResultExceptionAttribute));
		}
public static void EnableActionResultExceptionFilter ( this FilterCollection filterCollection ) { if ( filterCollection == null ) throw new ArgumentNullException ( nameof ( filterCollection ) ) ; filterCollection . Add ( typeof ( EnableActionResultExceptionAttribute ) ) ; }
Add  as a exception filter in the
.
Add as a exception filter in the .
The  is null
The is null
FilterCollection
this
filterCollection
None