public FootPrintService(long fid, IFootPrintServiceFactory footPrintServiceFactory, IFootPrintRepository footPrintRepository, IRepository <Data.FootPrintImg> footPrintImgRepository, IRepository <Data.FootPrintTag> footPrintTagRepository, FCRMAPI.IPushManager eventPushManager, Project.IProjSourceManager projSourceManager, IStaticResourceManager staticResourceManager ) { ExceptionHelper.ThrowIfNotId(fid, nameof(fid)); _Fid = fid; _FootPrintRepository = footPrintRepository; _FootPrintImgRepository = footPrintImgRepository; _FootPrintTagRepository = footPrintTagRepository; _EventPushManager = eventPushManager; _ProjSourceManager = projSourceManager; _StaticResourceManager = staticResourceManager; _FootPrintServiceFactory = footPrintServiceFactory; _LazyEntity = new Lazy <Data.FootPrint>(() => { var entity = _FootPrintRepository.Entities.FirstOrDefault(p => p.fid == fid); if (entity == null) { throw new ExceptionWithErrorCode(ErrorCode.没有找到对应条目); } return(entity); }); }
public FootPrintManager( IFootPrintRepository footPrintRepository, IRepository <Data.FootPrintImg> footPrintImgRepository, IStaticResourceManager staticResourceManager, IRepository <Data.FootPrintTag> footPrintTagRepository, Project.IProjSourceManager projSourceManager, IUserManager userManager, IFootPrintServiceFactory footPrintServiceFactory, IUserViewProjFootListRecordRepository userViewProjFootListRecordRepository, IUserFavoriteRepository userFavoriteRepository, FCRMAPI.IPushManager eventPushManager, Docked.IDockedManager dockedManager ) { _FootPrintRepository = footPrintRepository; _FootPrintImgRepository = footPrintImgRepository; _StaticResourceManager = staticResourceManager; _FootPrintTagRepository = footPrintTagRepository; _ProjSourceManager = projSourceManager; _FootPrintTagRepository = footPrintTagRepository; _ProjSourceManager = projSourceManager; _UserManager = userManager; _FootPrintServiceFactory = footPrintServiceFactory; _UserViewProjFootListRecordRepository = userViewProjFootListRecordRepository; _UserFavoriteRepository = userFavoriteRepository; _EventPushManager = eventPushManager; _DockedManager = dockedManager; }
public ProjFootPrintWithPidStrategy( User.IUserService user, UpdateFootPrintModel model, IFootPrintServiceFactory footPrintServiceFactory, IFootPrintRepository footPrintRepository, IStaticResourceManager staticResourceManager, Project.IProjSourceManager projSourceManager, IRepository <Data.FootPrintImg> footPrintImgRepository ) : base(user, model, footPrintServiceFactory, footPrintRepository, staticResourceManager, footPrintImgRepository) { ExceptionHelper.ThrowIfNotId(model.Pid, nameof(model.Pid)); _Pid = model.Pid.Value; _ProjSourceManager = projSourceManager; }
public ProjFootPrintWithNameStrategy( User.IUserService user, UpdateFootPrintModel model, IFootPrintServiceFactory footPrintServiceFactory, IFootPrintRepository footPrintRepository, IStaticResourceManager staticResourceManager, Project.IProjSourceManager projSourceManager, IRepository <Data.FootPrintImg> footPrintImgRepository ) : base(user, model, footPrintServiceFactory, footPrintRepository, staticResourceManager, footPrintImgRepository) { ExceptionHelper.ThrowIfNullOrWhiteSpace(model.ProjName, nameof(model.ProjName)); _Name = model.ProjName; _ProjSourceManager = projSourceManager; }
public FootPrintServiceFactory( IFootPrintRepository footPrintRepository, IRepository <Data.FootPrintImg> footPrintImgRepository, IRepository <Data.FootPrintTag> footPrintTagRepository, FCRMAPI.IPushManager eventPushManager, Project.IProjSourceManager projSourceManager, IStaticResourceManager staticResourceManager ) { _FootPrintRepository = footPrintRepository; _FootPrintImgRepository = footPrintImgRepository; _FootPrintTagRepository = footPrintTagRepository; _EventPushManager = eventPushManager; _ProjSourceManager = projSourceManager; _StaticResourceManager = staticResourceManager; }