public ContentManager(IServiceRegistry services) { Serializer = new ContentSerializer(); if (services != null) { Serializer.SerializerContextTags.Set(ServiceRegistry.ServiceRegistryKey, services); } }
public ContentManager(IServiceRegistry services) { Serializer = new ContentSerializer(); if (services != null) { services.AddService(typeof(IContentManager), this); services.AddService(typeof(ContentManager), this); Serializer.SerializerContextTags.Set(ServiceRegistry.ServiceRegistryKey, services); } }