static async Task Main() { var serviceProvider = await ServiceProviderCreator.Create(); var vtuberRankingService = serviceProvider.GetService <VTuberRankingService>(); await vtuberRankingService.GetNewMovies(); var(playlistId, playlistTitle, videoCount) = await vtuberRankingService.GeneratePlaylistFromLatestMoviesJson(); var twitterService = serviceProvider.GetService <TwitterService>(); await twitterService.TweetGeneratedPlaylist(playlistId, playlistTitle, videoCount); }
public Init() { var serviceProvider = ServiceProviderCreator.Create(); InitializeServices(serviceProvider); }