Add IImageCreator abstraction and runtime provider selection
Introduce IImageCreator interface for image creation, and update ImageCreatorSharp to implement it. Add ImageCreatorAlternate (adapter) and ImageCreatorMapper (runtime selector) classes. Extend PicSettings with ImageCreatorProvider to control backend selection. Update DI registrations and refactor ImageCreationStuff to depend on IImageCreator, enabling backend switching via configuration.
This commit is contained in:
parent
a00ab074c4
commit
e48c0d266b
7 changed files with 92 additions and 2 deletions
|
|
@ -66,4 +66,6 @@ public class PicSettings
|
|||
public bool FotoRuotaASinistra { get; set; } = false;
|
||||
public string TempMinText { get; set; } = string.Empty;
|
||||
public bool OverwriteFiles { get; set; } = false;
|
||||
// Which image creator to use: "Sharp" for current implementation, "Alternate" for alternate library
|
||||
public string ImageCreatorProvider { get; set; } = "Sharp";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue