public static DayliList GetInstance() { if (instance == null) { instance = new DayliList(); } return(instance); }
static async Task Run() { await new YandexAuth().Auth(); var tracks = await DayliList.GetInstance().GetTracks(); var trackUrl = new TrackUrl(); foreach (var t in tracks) { t.Url = await trackUrl.Get(t); } (await new DbClient().ClearDailyList()) .FillColection(tracks); }