Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 public FileSystemArtefactsStorageProvider(FileSystemArtefactStorageConfiguration config)
 {
     this.config = config;
 }