Join Discord
Powered by
ContentService SaveAndPublish raiseEvents paramete...
# help-with-umbraco
n
Nilay
07/03/2023, 1:18 PM
raiseEvents parameter not available anymore in ContentService Save / SaveAndPublish event in Umbraco 11?
https://github.com/umbraco/Umbraco-CMS/blob/release-11.3.1/src/Umbraco.Core/Services/ContentService.cs
Its going in infinate loop now and breaking code This refence for Umbraco 8 SaveAndPublish
https://github.com/umbraco/Umbraco-CMS/blob/release-8.16.0/src/Umbraco.Core/Services/Implement/ContentService.cs
p
Patrick de Mooij
07/03/2023, 1:39 PM
There is now a new way to do it. You need to suppress the events:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/110466-mediaservicesave-without-raising-events-umbraco-10
n
Nilay
07/03/2023, 1:41 PM
ohk. I will givei it a go . Thanks
Nilay
07/03/2023, 1:47 PM
looks lile ScopeProvider is internal class
Nilay
07/03/2023, 1:47 PM
https://github.com/umbraco/Umbraco-CMS/blob/release-11.3.0/src/Umbraco.Infrastructure/Scoping/ScopeProvider.cs
Nilay
07/03/2023, 1:47 PM
@Patrick de Mooij
p
Patrick de Mooij
07/03/2023, 1:48 PM
You can use the interface IScopeProvider instead of the ScopeProvider class
n
Nilay
07/04/2023, 10:58 AM
@Patrick de Mooij
it works by injecting Interface . Thanks
9
Views
Previous
Next