Beispiel #1
0
        /// <summary>
        /// GalleryModule constructor.
        /// </summary>
        /// <param name="fileService">FileService dependency.</param>
        /// <param name="sessionManager">NHibernate session manager dependency.</param>
        public GalleryModule(IFileService fileService, ISessionManager sessionManager)
        {
            _fileService        = fileService;
            _sessionManager     = sessionManager;
            _gallerythemepath   = UrlHelper.GetApplicationPath() + "Modules/Gallery/Css/";
            _galleryPathBuilder = new GalleryPathBuilder(fileService);

            // Init inbound actions
            _inboundActions = new ActionCollection();
            _inboundActions.Add(new Action("Album", new string[0]));
            _currentAction = _inboundActions[0];
        }
Beispiel #2
0
 public AlbumService(GalleryModule galleryModule)
 {
     _galleryModule      = galleryModule;
     _galleryPathBuilder = _galleryModule.PathBuilder;
 }