public SpotifyService(SpotifyWrapper spotifyWrapper, ApplicationDbContext context, AccountService accountService, IServiceProvider serviceProvider) : base(context, ServiceTypeEnum.Spotify) { _spotifyWrapper = spotifyWrapper; _accountService = accountService; _context = context; _serviceProvider = serviceProvider; }
public FollowedPlaylistUpdatedSpotifyAction(IServiceProvider serviceProvider) { _spotifyWrapper = (SpotifyWrapper)serviceProvider.GetService(typeof(SpotifyWrapper)); _spotifyService = (SpotifyService)serviceProvider.GetService(typeof(SpotifyService)); Type = Id.GetAttributeOfType <DescriptionActionAttribute>().Compatibilitys[0]; }