Esempio n. 1
0
        public RoleService(string rolesDirectoryPath, ICacheService cacheService, IDiskInputOutputService diskInputOutputService)
        {
            if (rolesDirectoryPath == null)
            {
                throw new ArgumentNullException("rolesDirectoryPath");
            }

            if (cacheService == null)
            {
                throw new ArgumentNullException("cacheService");
            }

            if (diskInputOutputService == null)
            {
                throw new ArgumentNullException("diskInputOutputService");
            }

            _rolesDirectoryPath     = rolesDirectoryPath;
            _cacheService           = cacheService;
            _diskInputOutputService = diskInputOutputService;
        }
Esempio n. 2
0
        public AlbumService(string albumRootDirPath, ICacheService cacheService, IDiskInputOutputService diskInputOutputService)
        {
            if (albumRootDirPath == null)
            {
                throw new ArgumentNullException("albumRootDirPath");
            }

            if (cacheService == null)
            {
                throw new ArgumentNullException("cacheService");
            }

            if (diskInputOutputService == null)
            {
                throw new ArgumentNullException("diskInputOutputService");
            }

            _albumRootDirPath       = albumRootDirPath;
            _cacheService           = cacheService;
            _diskInputOutputService = diskInputOutputService;
        }
Esempio n. 3
0
        public RoleService(string rolesDirectoryPath, ICacheService cacheService, IDiskInputOutputService diskInputOutputService)
        {
            if (rolesDirectoryPath == null)
            {
                throw new ArgumentNullException("rolesDirectoryPath");
            }

            if (cacheService == null)
            {
                throw new ArgumentNullException("cacheService");
            }

            if (diskInputOutputService == null)
            {
                throw new ArgumentNullException("diskInputOutputService");
            }

            _rolesDirectoryPath = rolesDirectoryPath;
            _cacheService = cacheService;
            _diskInputOutputService = diskInputOutputService;
        }
Esempio n. 4
0
        public AlbumService(string albumRootDirPath, ICacheService cacheService, IDiskInputOutputService diskInputOutputService)
        {
            if (albumRootDirPath == null)
            {
                throw new ArgumentNullException("albumRootDirPath");
            }

            if (cacheService == null)
            {
                throw new ArgumentNullException("cacheService");
            }

            if (diskInputOutputService == null)
            {
                throw new ArgumentNullException("diskInputOutputService");
            }

            _albumRootDirPath = albumRootDirPath;
            _cacheService = cacheService;
            _diskInputOutputService = diskInputOutputService;
        }