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