Beispiel #1
0
        public static void Configure(FileRepositoryOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            directoryPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), options.FolderName);
            Directory.CreateDirectory(directoryPath);
        }
Beispiel #2
0
 public VideoRepository(IOptionsMonitor <FileRepositoryOptions> options)
 {
     _options = options.CurrentValue;
 }