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 have a custom serializer in Umbraco8, that gets triggered when registering the new serializer in a composer.
composition.Register(typeof(ISyncSerializer<IContentType>), typeof(USyncContentTypeSerializer), Lifetime.Singleton);
But the same (althought rewritten to .NET6) implementation doesn't work in Umbraco 10. Is there another way to register it in Umbraco 10?
I'm doing it this way, But doesn't work
builder.Services.AddSingleton<ISyncSerializer<IContentType>, USyncContentTypeSerializer>()
Hi ,
In v10 you don't need to specifically register the serializer, as long as it implements ISyncSerializer it will be loaded.
ISyncSerializer
However the handlers etc won't use it unless you remove the existing content TypeSerializer
builder.WithCollectionBuilder<SyncSerializerCollectionBuilder>() .Remove<ContentTypeSerializer>();
Thanks Kevin That absolutely solved it :-)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Trigger custom serializer
I have a custom serializer in Umbraco8, that gets triggered when registering the new serializer in a composer.
But the same (althought rewritten to .NET6) implementation doesn't work in Umbraco 10. Is there another way to register it in Umbraco 10?
I'm doing it this way, But doesn't work
Hi ,
In v10 you don't need to specifically register the serializer, as long as it implements
ISyncSerializer
it will be loaded.However the handlers etc won't use it unless you remove the existing content TypeSerializer
Thanks Kevin That absolutely solved it :-)
is working on a reply...