@@ -79,18 +79,18 @@ public void AddResourceGraph(Type dbContextType, Action<ResourceGraphBuilder> co
79
79
/// <summary>
80
80
/// Configures built-in .NET Core MVC (things like middleware, routing). Most of this configuration can be adjusted for the developers' need.
81
81
/// Before calling .AddJsonApi(), a developer can register their own implementation of the following services to customize startup:
82
- /// <see cref="ResourceGraphBuilder"/>, <see cref="ServiceDiscoveryFacade"/>, <see cref="IJsonApiTypeMatchFilter "/>,
83
- /// <see cref="IJsonApiExceptionFilter "/> and <see cref="IJsonApiRoutingConvention"/>.
82
+ /// <see cref="ResourceGraphBuilder"/>, <see cref="ServiceDiscoveryFacade"/>, <see cref="IAsyncResourceTypeMatchFilter "/>,
83
+ /// <see cref="IAsyncJsonApiExceptionFilter "/> and <see cref="IJsonApiRoutingConvention"/>.
84
84
/// </summary>
85
85
public void ConfigureMvc ( )
86
86
{
87
87
_mvcBuilder . AddMvcOptions ( options =>
88
88
{
89
89
options . EnableEndpointRouting = true ;
90
- options . Filters . AddService < IJsonApiExceptionFilter > ( ) ;
91
- options . Filters . AddService < IJsonApiTypeMatchFilter > ( ) ;
92
- options . Filters . AddService < IQueryStringActionFilter > ( ) ;
93
- options . Filters . AddService < IConvertEmptyActionResultFilter > ( ) ;
90
+ options . Filters . AddService < IAsyncJsonApiExceptionFilter > ( ) ;
91
+ options . Filters . AddService < IAsyncResourceTypeMatchFilter > ( ) ;
92
+ options . Filters . AddService < IAsyncQueryStringActionFilter > ( ) ;
93
+ options . Filters . AddService < IAsyncConvertEmptyActionResultFilter > ( ) ;
94
94
ConfigureMvcOptions ? . Invoke ( options ) ;
95
95
} ) ;
96
96
@@ -154,10 +154,10 @@ private void AddMiddlewareLayer()
154
154
_services . AddSingleton < IJsonApiOptions > ( _options ) ;
155
155
_services . AddSingleton < IJsonApiApplicationBuilder > ( this ) ;
156
156
_services . TryAddSingleton < IExceptionHandler , ExceptionHandler > ( ) ;
157
- _services . TryAddScoped < IJsonApiExceptionFilter , JsonApiExceptionFilter > ( ) ;
158
- _services . TryAddScoped < IJsonApiTypeMatchFilter , JsonApiTypeMatchFilter > ( ) ;
159
- _services . TryAddScoped < IQueryStringActionFilter , QueryStringActionFilter > ( ) ;
160
- _services . TryAddScoped < IConvertEmptyActionResultFilter , ConvertEmptyActionResultFilter > ( ) ;
157
+ _services . TryAddScoped < IAsyncJsonApiExceptionFilter , AsyncJsonApiExceptionFilter > ( ) ;
158
+ _services . TryAddScoped < IAsyncResourceTypeMatchFilter , AsyncResourceTypeMatchFilter > ( ) ;
159
+ _services . TryAddScoped < IAsyncQueryStringActionFilter , AsyncQueryStringActionFilter > ( ) ;
160
+ _services . TryAddScoped < IAsyncConvertEmptyActionResultFilter , AsyncConvertEmptyActionResultFilter > ( ) ;
161
161
_services . TryAddSingleton < IJsonApiInputFormatter , JsonApiInputFormatter > ( ) ;
162
162
_services . TryAddSingleton < IJsonApiOutputFormatter , JsonApiOutputFormatter > ( ) ;
163
163
_services . TryAddSingleton < IJsonApiRoutingConvention , JsonApiRoutingConvention > ( ) ;
0 commit comments