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