Table of Contents

Interface ICustomProductSaveProvider

Namespace
S1API.Products
Assembly
S1API.dll

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

int

ProviderId

Gets the stable, namespaced provider ID.

string ProviderId { get; }

Property Value

string

Methods

Restore(CustomProductSaveDescriptor)

Returns the fully configured builder that recreates the descriptor's product.

CustomProductDefinitionBuilder? Restore(CustomProductSaveDescriptor descriptor)

Parameters

descriptor CustomProductSaveDescriptor

The validated scalar descriptor.

Returns

CustomProductDefinitionBuilder

A fully configured, unbuilt definition builder, or null to skip restoration safely.