Esempio n. 1
0
 public HomeController()
 {
     using (var scope = StaticContainer.Container.BeginLifetimeScope())
     {
         AlbumRepository         = scope.Resolve <IAlbumRepository>();
         SongRepository          = scope.Resolve <ISongRepository>();
         StaticContentRepository = scope.Resolve <IStaticContentRepository>();
         ArtistRepository        = scope.Resolve <IArtistRepository>();
     }
 }
 public StaticContentService(IUnitOfWork unitOfWork, IStaticContentRepository staticContentRepository, ICacheManager cacheManager) : base(unitOfWork, staticContentRepository)
 {
     _staticContentRepository = staticContentRepository;
     _cacheManager            = cacheManager;
 }
Esempio n. 3
0
 public StaticContentService(IUnitOfWork unitOfWork, IStaticContentRepository staticContentRepository) : base(unitOfWork, staticContentRepository)
 {
     this._unitOfWork = unitOfWork;
     this._staticContentRepository = staticContentRepository;
 }
Esempio n. 4
0
 public StaticContentController(IStaticContentRepository staticContentRepository)
 {
     _staticContentRepository = staticContentRepository;
 }