Class CleanerCommon
Cleaning project build results
Inheritance
object
CleanerCommon
Namespace: BuildSystem.Cleaner.Common
Assembly: BuildSystem.Core.dll
Syntax
public class CleanerCommon : Object, ICleaner, IManager
Constructors
CleanerCommon(ILogger?, CleanerCommonProps, string)
Cleaning project build results
Declaration
public CleanerCommon(ILogger? logger, CleanerCommonProps props, string tempDir)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | Logging object |
CleanerCommonProps | props | Properties of new object |
string | tempDir | Parent folder for temporary files |
Fields
ClassIdent
Unique ident of class
Declaration
public const string ClassIdent = "Cleaner.Common"
Field Value
Type | Description |
---|---|
string |
Properties
Logger
Declaration
public ILogger? Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Props
Declaration
public IManagerProp Props { get; }
Property Value
Type | Description |
---|---|
IManagerProp |
Methods
Clean(IEnumerable<string>, Dictionary<string, string>)
Delete files if they exist. Masks for deleting were already set in constructor
Declaration
public void Clean(IEnumerable<string> buildResultsList, Dictionary<string, string> cleanParams)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<><string> | buildResultsList | Files, which deleting depends on settings ob cleaner |
System.Collections.Generic.Dictionary<,><string, string> | cleanParams | Special params of cleaning |