コード例 #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));
        }
コード例 #2
0
 public FileSystemArtefactsStorageProvider(FileSystemArtefactStorageConfiguration config)
 {
     this.config = config;
 }