/// <summary> /// Constructs the class. It passes the configuration rules to the processor. /// It starts,if it is configured, the background timed monitoring. /// </summary> /// <param name="configurationRoot">The archive processor configuration and archive rules.</param> /// <param name="startOnConstruct">For hosted version support.</param> public FilesArchiveProcessor(ArchiveProcessorConfig configurationRoot, bool startOnConstruct) { Configuration = configurationRoot; if (startOnConstruct) { StartAsync(CancellationToken.None); } }
/// <summary> /// Constructs the class. It passes the configuration rules to the processor. /// It starts,if it is configured, the background timed monitoring. /// </summary> /// <param name="configurationRoot">The archive processor configuration and archive rules.</param> public FilesArchiveProcessor(ArchiveProcessorConfig configurationRoot) : this(configurationRoot, true) { }