Interface ICustomProductSaveProvider
Reconstructs a custom product from a persisted scalar descriptor.
public interface ICustomProductSaveProvider
- Extension Methods
Remarks
Register the provider before save restoration. The returned builder must retain the descriptor's stable product ID. Returning null preserves S1API's safe missing-content path.
Properties
MaximumDescriptorVersion
Gets the highest provider descriptor version this provider accepts.
int MaximumDescriptorVersion { get; }
Property Value
ProviderId
Gets the stable, namespaced provider ID.
string ProviderId { get; }
Property Value
Methods
Restore(CustomProductSaveDescriptor)
Returns the fully configured builder that recreates the descriptor's product.
CustomProductDefinitionBuilder? Restore(CustomProductSaveDescriptor descriptor)
Parameters
descriptorCustomProductSaveDescriptorThe validated scalar descriptor.
Returns
- CustomProductDefinitionBuilder
A fully configured, unbuilt definition builder, or null to skip restoration safely.