File tree 2 files changed +4
-4
lines changed
Examples/JsonApiDotNetCoreExample/Startups
JsonApiDotNetCore/Configuration
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public virtual void ConfigureServices(IServiceCollection services)
45
45
options . IncludeTotalRecordCount = true ;
46
46
options . LoadDatabaseValues = true ;
47
47
options . ValidateModelState = true ;
48
+ options . EnableResourceHooks = true ;
48
49
} ,
49
50
discovery => discovery . AddCurrentAssembly ( ) ) ;
50
51
// once all tests have been moved to WebApplicationFactory format we can get rid of this line below
Original file line number Diff line number Diff line change @@ -30,11 +30,10 @@ public class JsonApiOptions : IJsonApiOptions
30
30
public bool IncludeExceptionStackTraceInErrors { get ; set ; } = false ;
31
31
32
32
/// <summary>
33
- /// Whether or not ResourceHooks are enabled.
34
- ///
35
- /// Default is set to <see langword="true"/>
33
+ /// Whether or not resource hooks are enabled.
34
+ /// This is currently an experimental feature and defaults to <see langword="false"/>.
36
35
/// </summary>
37
- public bool EnableResourceHooks { get ; set ; } = true ;
36
+ public bool EnableResourceHooks { get ; set ; } = false ;
38
37
39
38
/// <summary>
40
39
/// Whether or not database values should be included by default
You can’t perform that action at this time.
0 commit comments