Exemplo n.º 1
0
 public AlbumsController(ISongsService songsService, IUsersService usersService, IAlbumsService albumsService, IMapper mapper)
 {
     this.songsService  = songsService;
     this.usersService  = usersService;
     this.albumsService = albumsService;
     this.mapper        = mapper;
 }
Exemplo n.º 2
0
        public AlbumsViewModel(IAlbumsService albumsService = null)
        {
            if (albumsService is null)
            {
                this.albumsService = Locator.Current.GetService <IAlbumsService>();
            }

            searchResults = this
                            .WhenAnyValue(x => x.SearchTerm)
                            .Throttle(TimeSpan.FromMilliseconds(800))
                            .Select(num => num?.Trim())
                            .DistinctUntilChanged()
                            .Where(num => !string.IsNullOrWhiteSpace(num))
                            .Where(num => int.TryParse(num, out _))
                            .SelectMany(GetNumberOfAlbums)
                            .ObserveOn(RxApp.MainThreadScheduler)
                            .ToProperty(this, x => x.SearchResults);

            searchResults.ThrownExceptions.Subscribe(error => { /* Handle errors here */ });

            isAvailable = this
                          .WhenAnyValue(x => x.SearchResults)
                          .Select(searchResults => searchResults != null)
                          .ToProperty(this, x => x.IsAvailable);
        }
Exemplo n.º 3
0
 public ReviewsController(IAlbumsService albumsService, IUsersService usersService, IReviewsService reviewsService, IMapper mapper)
 {
     this.albumsService  = albumsService;
     this.usersService   = usersService;
     this.reviewsService = reviewsService;
     this.mapper         = mapper;
 }
Exemplo n.º 4
0
 public SongsController(ISongsService songsService, ISongsPerformersService songsPerformersService, IAlbumsService albumsServicec, IWritersService writersService)
 {
     this.songsService           = songsService;
     this.songsPerformersService = songsPerformersService;
     this.albumsServicec         = albumsServicec;
     this.writersService         = writersService;
 }
Exemplo n.º 5
0
 public PhotosService(IRepository repo, IUserService userService, ICategoriesService categoriesService, IAlbumsService albumsService)
 {
     this.repo              = repo;
     this.userService       = userService;
     this.categoriesService = categoriesService;
     this.albumsService     = albumsService;
 }
Exemplo n.º 6
0
 public AlbumsController(
     IGroupsService groupsService,
     IAlbumsService albumsService)
 {
     this.groupsService = groupsService;
     this.albumsService = albumsService;
 }
 public AlbumsController(ICRUDTestDBContextProvider cRUDTestDBContextProvider,
                         IMapper mapper,
                         IAlbumsService albumsService)
 {
     this.cRUDTestDBContextProvider = cRUDTestDBContextProvider;
     this.mapper        = mapper;
     this.albumsService = albumsService;
 }
Exemplo n.º 8
0
        public AlbumsController(ApplicationDbContext context, IAlbumsService service, IWebHostEnvironment webHostEnvironment)
        {
            _context = context;
            _service = service;
            string rootPath = webHostEnvironment.WebRootPath;

            basePath = Path.Combine(rootPath, "res", "newImages", "albums");
        }
 public ArtistsController(IArtistsService artistsService,
                          IAlbumsService albumsService,
                          IOptions <PagingOptions> defaultPagingOptions)
 {
     _artistsService       = artistsService;
     _albumsService        = albumsService;
     _defaultPagingOptions = defaultPagingOptions.Value;
 }
Exemplo n.º 10
0
 public AlbumsAndPhotosService(
     IAlbumsService albumsService,
     IPhotosService photosService,
     IAlbumsAndPhotosHelper albumsAndPhotosHelper)
 {
     _albumsService         = albumsService;
     _photosService         = photosService;
     _albumsAndPhotosHelper = albumsAndPhotosHelper;
 }
Exemplo n.º 11
0
 public ImagesController(
     IAlbumsService albumssService,
     IImagesService imagesService,
     ITagsService tagsService)
 {
     this.imagesService  = imagesService;
     this.tagsService    = tagsService;
     this.albumssService = albumssService;
 }
Exemplo n.º 12
0
 public AlbumsController(
     IAlbumsService albumsService, 
     ITagsService tagsService, 
     IImagesService imagesService)
 {
     this.albumsService = albumsService;
     this.tagsService = tagsService;
     this.imagesService = imagesService;
 }
Exemplo n.º 13
0
 public HomeController(
     IAlbumsService albumsService,
     ICommentsService commentsService,
     IPhotosService photosService,
     ILogger <HomeController> logger)
 {
     _albumsService   = albumsService;
     _commentsService = commentsService;
     _photosService   = photosService;
     _logger          = logger;
 }
Exemplo n.º 14
0
 public ProfileController(
     IAlbumsService albumsService,
     IPhotoService photoService,
     IFavoritesService favoritesService,
     ITopicService topicService,
     UserManager <User> userManager)
 {
     this.albumsService    = albumsService;
     this.photoService     = photoService;
     this.favoritesService = favoritesService;
     this.topicService     = topicService;
     this.userManager      = userManager;
 }
Exemplo n.º 15
0
 public ContactsController(IContactsService contactsService,
                           IAlbumsService albumsService,
                           IImagesService imagesService,
                           IWebHostEnvironment hostEnvironment,
                           SignInManager <IdentityUser> signInManager,
                           UserManager <IdentityUser> userManager)
 {
     _ContactsService    = contactsService;
     _AlbumsService      = albumsService;
     _ImagesService      = imagesService;
     _WebHostEnvironment = hostEnvironment;
     _SignInManager      = signInManager;
     _UserManager        = userManager;
 }
Exemplo n.º 16
0
 public EventsController(IAlbumsService albumsService,
                         IEventsService eventsService,
                         IContactsService contactsService,
                         IWebHostEnvironment hostEnvironment,
                         SignInManager <IdentityUser> signInManager,
                         UserManager <IdentityUser> userManager)
 {
     _AlbumsService      = albumsService;
     _EventsService      = eventsService;
     _ContactsService    = contactsService;
     _WebHostEnvironment = hostEnvironment;
     _SignInManager      = signInManager;
     _UserManager        = userManager;
 }
Exemplo n.º 17
0
 public HomeController(IContactsService contactsService,
                       IAlbumsService albumsService,
                       IEventsService eventsService,
                       INewslettersService newslettersService,
                       INewsItemsService newsItemsService,
                       SignInManager <IdentityUser> signInManager,
                       UserManager <IdentityUser> userManager)
 {
     _ContactsService    = contactsService;
     _AlbumsService      = albumsService;
     _EventsService      = eventsService;
     _NewslettersService = newslettersService;
     _NewsItemsService   = newsItemsService;
     _SignInManager      = signInManager;
     _UserManager        = userManager;
 }
Exemplo n.º 18
0
 public ProducersController(ApplicationDbContext context, IProducersService producerService, IAlbumsService albumsServicec)
 {
     _context             = context;
     this.producerService = producerService;
     this.albumsServicec  = albumsServicec;
 }
Exemplo n.º 19
0
 public TracksServices(IRunesDbContext db, IAlbumsService albumsService)
 {
     this.db            = db;
     this.albumsService = albumsService;
 }
Exemplo n.º 20
0
 public AlbumsController(IAlbumsService albumsService, IMapper mapper)
 {
     this.albumsService = albumsService;
     this.mapper        = mapper;
 }
 public AlbumsController(IAlbumsService albumsService, ITracksService tracksService)
 {
     this.albumsService = albumsService;
     this.tracksService = tracksService;
 }
Exemplo n.º 22
0
 public AlbumsController(IAlbumsService albumsService)
 {
     _albumsService = albumsService;
 }
Exemplo n.º 23
0
 public AlbumsController(IAlbumsService service, IImgService imgService)
 {
     this.service    = service;
     this.imgService = imgService;
 }
Exemplo n.º 24
0
 public AlbumsController(IAlbumsService albumService)
 {
     this.albumsService = albumService;
 }
Exemplo n.º 25
0
 /// <summary>
 /// Initializes a new instance of the UserController class.
 /// Gets called by the StartUp class.
 /// </summary>
 /// <param name="userService">A required service for the class.</param>
 /// <param name="albumService">A required service for the class.</param>
 /// <param name="genreService">A required service for the class.</param>
 public UserController(IUserService userService, IAlbumsService albumService, IGenreService genreService)
 {
     this.albumService = albumService;
     this.genreService = genreService;
     this.userService  = userService;
 }
 public HomeController()
 {
     albumsService   = new AlbumsService();
     photosService   = new PhotosService();
     commentsService = new CommentsService();
 }
 public AlbumsController()
 {
     this.albumsService = new AlbumsService();
     this.trackService  = new TrackService();
 }
 public AlbumsController(IAlbumsService albumsService, ISongsService songsService)
 {
     this.albumsService = albumsService;
     this.songsService  = songsService;
 }
 public SimulatedAlbumsService(ISimulatorDecider simulatorDecider, IAlbumsService albumsService, ISimulatedAlbumStorage albumStorage)
 {
     _simulatorDecider = simulatorDecider;
     _albumsService = albumsService;
     _albumStorage = albumStorage;
 }
Exemplo n.º 30
0
 public AlbumsAppService(IAlbumsService albumService, IMapper mapper, IConfiguration configuration) : base(albumService)
 {
     _albumService  = albumService;
     _mapper        = mapper;
     _configuration = configuration;
 }
Exemplo n.º 31
0
 public AlbumsController(IAlbumsService albumsService)
 {
     _albumsService = albumsService;
 }
Exemplo n.º 32
0
 public AlbumsController(IAlbumsService service)
 {
     _service = service;
 }
Exemplo n.º 33
0
 public AlbumsController(IAlbumsService albumsService, IPhotosService photosService, IAlbumAggregator albumAggregator)
 {
     _albumsService   = albumsService;
     _photosService   = photosService;
     _albumAggregator = albumAggregator;
 }
Exemplo n.º 34
0
 /// <summary>
 /// Initialize the ViewModel. Platform specific dependencies are injected into the constructor using
 /// an interface. 
 /// </summary>
 /// <param name="albumsService">The implementation of the platform specific abstraction</param>
 public AlbumsViewModel(IAlbumsService albumsService)
 {
     _albumsService = albumsService;
 }