public static void AddFileSystemArtefactStorage(this IJobbrBuilder builder, Action <FileSystemArtefactStorageConfiguration> config) { var defaultConfig = new FileSystemArtefactStorageConfiguration(); config(defaultConfig); builder.Add <FileSystemArtefactStorageConfiguration>(defaultConfig); builder.Register <IArtefactsStorageProvider>(typeof(FileSystemArtefactsStorageProvider)); builder.Register <IConfigurationValidator>(typeof(ConfigurationValidator)); }
public FileSystemArtefactsStorageProvider(FileSystemArtefactStorageConfiguration config) { this.config = config; }