File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Examples/JsonApiDotNetCoreExample/Startups
JsonApiDotNetCore/Configuration Expand file tree Collapse file tree 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)
4545 options . IncludeTotalRecordCount = true ;
4646 options . LoadDatabaseValues = true ;
4747 options . ValidateModelState = true ;
48+ options . EnableResourceHooks = true ;
4849 } ,
4950 discovery => discovery . AddCurrentAssembly ( ) ) ;
5051 // 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
3030 public bool IncludeExceptionStackTraceInErrors { get ; set ; } = false ;
3131
3232 /// <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"/>.
3635 /// </summary>
37- public bool EnableResourceHooks { get ; set ; } = true ;
36+ public bool EnableResourceHooks { get ; set ; } = false ;
3837
3938 /// <summary>
4039 /// Whether or not database values should be included by default
You can’t perform that action at this time.
0 commit comments