Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm hitting an error when saving members through a Hangfire task (already raised here https://github.com/umbraco/Umbraco-CMS/issues/8090).
As a quick fix for the project I'm on I was looking for help in how to override core components?
Specifically I'm looking to have a new version of this to contain the fix - https://github.com/umbraco/Umbraco-CMS/blob/v8/contrib/src/Umbraco.Core/Compose/AuditEventsComponent.cs
Turns out there's a handy Components.Replace function as part of the Composition class which allows you to swap out components. An example of how to use this would be:
public class TestComposer : IUserComposer
public void Compose(Composition composition)
public class TestComponent : IComponent
public void Initialize()
//...All the stuff I want to do instead of the AuditEventsComponent!
public void Terminate()
Thanks to Rowan for the help on Slack!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted