Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="style"></param>
 /// <param name="artistName">This name will be matched to disk folders ignoring accents and case</param>
 public ArtistFolder(MusicOptions options, MusicStyles style, string artistName) //: base(options, style)
 {
     this.artistName = artistName;
     musicOptions    = options;
     musicStyle      = style;
     log             = ApplicationLoggerFactory.CreateLogger <ArtistFolder>();
 }
Exemple #2
0
 public OpusFolder(MusicFolderInformation mfi, int mfiPathsIndex, /*string path,*/ bool forSinglesOnly = false)
 {
     this.log             = ApplicationLoggerFactory.CreateLogger <OpusFolder>();
     this.mfi             = mfi;
     this.forSinglesOnly  = forSinglesOnly;
     this.currentPathData = mfi.Paths[mfiPathsIndex];
 }
Exemple #3
0
 public AudioFile(MusicOptions musicOptions, MusicStyles musicStyle, FileInfo fi) //: base(musicOptions, musicStyle)
 {
     this.File         = fi;
     this.musicOptions = musicOptions;
     log             = ApplicationLoggerFactory.CreateLogger(this.GetType());
     this.musicStyle = musicStyle;
 }
Exemple #4
0
 public TaskBase(MusicOptions options, long taskId, string connectionString, BlockingCollection <TaskQueueItem> taskQueue)
 {
     musicOptions          = options;
     this.taskId           = taskId;
     this.connectionString = connectionString;
     this.taskQueue        = taskQueue;
     log = ApplicationLoggerFactory.CreateLogger(GetType());
 }
Exemple #5
0
 public TaskHost(IServiceProvider sp, MusicOptions options, BlockingCollection <TaskQueueItem> taskQueue,
                 string connectionString, CancellationToken cancellationToken)
 {
     this.serviceProvider   = sp;
     this.options           = options;
     this.cancellationToken = cancellationToken;
     this.hostIdentity      = ++hostIdentifier;
     this.log = ApplicationLoggerFactory.CreateLogger($"Fastnet.Apollo.Web.TaskHost{hostIdentity}");
     this.connectionString = connectionString;
     this.taskQueue        = taskQueue;
 }
Exemple #6
0
 /// <summary>
 /// create a a music set for the given music files in the given music style
 /// </summary>
 /// <param name="musicOptions"></param>
 /// <param name="musicStyle"></param>
 /// <param name="musicFiles"></param>
 public MusicSet(MusicDb db, MusicOptions musicOptions, MusicStyles musicStyle, IEnumerable <MusicFile> musicFiles, TaskItem taskItem)
 {
     Debug.Assert(musicFiles.Count() > 0);
     this.log          = ApplicationLoggerFactory.CreateLogger(this.GetType());
     this.MusicDb      = db;
     this.MusicOptions = musicOptions;
     this.MusicStyle   = musicStyle;
     this.MusicFiles   = musicFiles;
     this.taskItem     = taskItem;
     this.FirstFile    = musicFiles.First();
     this.OpusType     = FirstFile.OpusType;
     this.generated    = FirstFile.IsGenerated;
 }
Exemple #7
0
 public OpusFolder(MusicOptions musicOptions, PathData pathData)
 {
     this.log = ApplicationLoggerFactory.CreateLogger <OpusFolder>();
     this.mfi = new MusicFolderInformation
     {
         MusicOptions   = musicOptions,
         MusicStyle     = pathData.MusicStyle,
         Paths          = new PathData[] { pathData },
         IncludeSingles = pathData.MusicStyle == MusicStyles.Popular
     };
     this.currentPathData = pathData;
     if (pathData.OpusPath == null)
     {
         this.forSinglesOnly = pathData.MusicStyle == MusicStyles.Popular;
     }
 }
Exemple #8
0
 public MusicDb(DbContextOptions <MusicDb> options) : base(options)
 {
     log = ApplicationLoggerFactory.CreateLogger <MusicDb>();
 }
Exemple #9
0
 public MusicDb(string cs)
 {
     this.connectionString = cs;
     log = ApplicationLoggerFactory.CreateLogger <MusicDb>();
 }
Exemple #10
0
 public PerformanceTEO(MusicOptions musicOptions)
 {
     this.musicOptions = musicOptions;
     log = ApplicationLoggerFactory.CreateLogger(this.GetType());
 }
Exemple #11
0
 public WesternClassicalMusicSetCollection(MusicOptions musicOptions, MusicDb musicDb,
                                           OpusFolder musicFolder, List <MusicFile> files, TaskItem taskItem) : base(musicOptions, musicDb, musicFolder, files, taskItem)
 {
     this.log = ApplicationLoggerFactory.CreateLogger <WesternClassicalMusicSetCollection>();
 }
Exemple #12
0
 public CollectionsFolder(MusicOptions options, MusicStyles style) //: base(options, style)
 {
     musicOptions = options;
     musicStyle   = style;
     log          = ApplicationLoggerFactory.CreateLogger <CollectionsFolder>();
 }