Пример #1
0
 public TaskController(TaskRepository taskRepository, ITaskManager taskManager, ICommentManager commentManager, IAppContext appContext)
 {
     _taskRepository = taskRepository;
     _taskManager    = taskManager;
     _commentManager = commentManager;
     _appContext     = appContext;
 }
 public IssuesController(IRepositary repositary, IIssueManager issueManager, IProjectManager projectManager, IUserSessionHelper userSessionHelper, ICommentManager commentManager) : base(repositary)
 {
     this.issueManager      = issueManager;
     this.projectManager    = projectManager;
     this.userSessionHelper = userSessionHelper;
     this.commentManager    = commentManager;
 }
Пример #3
0
 public HomeController(ILogger <HomeController> logger, IMalwareManager malwareManager, ICommentManager commentManager, IEmailService email)
 {
     this.malwareManager = malwareManager;
     this.commentManager = commentManager;
     this.email          = email;
     _logger             = logger;
 }
 public IssuesController(IRepositary repositary, IIssueManager issueManager, IProjectManager projectManager, IUserSessionHelper userSessionHelper, ICommentManager commentManager) : base(repositary)
 {
     this.issueManager = issueManager;
     this.projectManager = projectManager;
     this.userSessionHelper = userSessionHelper;
     this.commentManager = commentManager;
 }
 public RequsitionController(IRequsitionManager requsition, IEmployeeManager employee, IRequsitionStatusManager requsitionStatus, ICommentManager comment)
 {
     this._requsitionManager       = requsition;
     this._employeeManager         = employee;
     this._requsitionStatusManager = requsitionStatus;
     this._commentManager          = comment;
 }
Пример #6
0
 public CommentsListCore(BlogHomeItem currentBlogHomeItem, EntryItem currentEntry, IWeBlogSettings settings = null, ICommentManager commentManager = null)
 {
     CurrentBlog    = currentBlogHomeItem;
     CurrentEntry   = currentEntry;
     Settings       = settings ?? WeBlogSettings.Instance;
     CommentManager = commentManager ?? ManagerFactory.CommentManagerInstance;
 }
Пример #7
0
 public CommentsController(ApplicationDbContext context,
                           IUserService userService,
                           ICommentManager commentManager)
 {
     this.userService    = userService;
     this.commentManager = commentManager;
 }
        public HomeController(IRequsitionManager requisition, IEmployeeManager employee, ICommentManager comment)
        {
            this._employeeManager    = employee;
            this._requisitionManager = requisition;

            this.commentManager = comment;
        }
Пример #9
0
 public CommentsController(
     IMapper mapper,
     ICommentManager commentManager)
     : base(mapper)
 {
     _commentManager = commentManager;
 }
Пример #10
0
 public ArticleController(IArticleManager articleManager, ICommentManager commentManager, IUserManager userManager, ILogger.ILogger logger)
 {
     this.articleManager = articleManager;
     this.commentManager = commentManager;
     this.userManager = userManager;
     this.logger = logger;
 }
Пример #11
0
 public ReplyAppService(
     ICommentManager commentManager,
     IReplyManager replyManager)
 {
     _commentManager = commentManager;
     _replyManager   = replyManager;
 }
Пример #12
0
 /// <summary>
 /// 构造函数
 ///</summary>
 public CommentAppService(IRepository <Comment, Guid> commentRepository, ICommentManager commentManager, CommentListExcelExporter commentListExcelExporter, IRepository <Post, Guid> postRepository)
 {
     _commentRepository        = commentRepository;
     _commentManager           = commentManager;
     _commentListExcelExporter = commentListExcelExporter;
     _postRepository           = postRepository;
 }
Пример #13
0
 public ArticleController(IArticleManager articleManager, ICommentManager commentManager, IUserManager userManager, ILogger.ILogger logger)
 {
     this.articleManager = articleManager;
     this.commentManager = commentManager;
     this.userManager    = userManager;
     this.logger         = logger;
 }
Пример #14
0
 public IssueController(ICommentManager commentManager, IUserSessionHelper userSessionHelper, IProjectManager projectManager, IIssueManager issueManager, ITeamManager teamManager) //: base(repositary)
 {
     this.issueManager      = issueManager;
     this.projectManager    = projectManager;
     this.userSessionHelper = userSessionHelper;
     this.commentManager    = commentManager;
     this.teamManager       = teamManager;
 }
Пример #15
0
 public CommentController(IExerciseManager exerciseManager, ICourseManager courseManager,
                          UserManager <User> userManager, ICommentManager commentManager, IMapper mapper)
 {
     this.exerciseManager = exerciseManager;
     this.userManager     = userManager;
     this.commentManager  = commentManager;
     this.mapper          = mapper;
 }
Пример #16
0
 public EntryManager(
     ReportDataProviderBase reportDataProvider,
     IEntrySearchCache cache,
     IWeBlogSettings settings       = null,
     ICommentManager commentManager = null)
     : this(reportDataProvider, cache, settings, commentManager, null)
 {
 }
Пример #17
0
 public SettingsController(IAuthManager authManager, ISmsManager smsManager, IMailManager mailManager, ICommentManager formManager, ISettingsRepository formRepository)
 {
     _authManager        = authManager;
     _smsManager         = smsManager;
     _mailManager        = mailManager;
     _commentManager     = formManager;
     _settingsRepository = formRepository;
 }
Пример #18
0
 public UserController(IUserManager userManager, IRoleManager roleManager, IArticleManager articleManager, ILogger.ILogger logger, ICommentManager comManager)
 {
     this.userManager = userManager;
     this.roleManager = roleManager;
     this.articleManager = articleManager;
     this.logger = logger;
     this.comManager = comManager;
 }
Пример #19
0
 public UserController(IUserManager userManager, IRoleManager roleManager, IArticleManager articleManager, ILogger.ILogger logger, ICommentManager comManager)
 {
     this.userManager    = userManager;
     this.roleManager    = roleManager;
     this.articleManager = articleManager;
     this.logger         = logger;
     this.comManager     = comManager;
 }
Пример #20
0
 public ManageLayerEditController(IAuthManager authManager, IPathManager pathManager, ICommentManager formManager, ICommentRepository dataRepository, ISettingsRepository formRepository)
 {
     _authManager        = authManager;
     _pathManager        = pathManager;
     _commentManager     = formManager;
     _commentRepository  = dataRepository;
     _settingsRepository = formRepository;
 }
Пример #21
0
 public CommentController(
     ICommentManager commentManager,
     IMapper mapper,
     ILogger <CommentController> logger,
     IConfiguration configuration)
 {
     this.commentManager = commentManager;
     this.logger         = logger;
 }
Пример #22
0
 public CommentController(
     ICommentManager commentManager,
     ICarManager carManager,
     ILogger logger)
 {
     _commentManager = commentManager;
     _carManager     = carManager;
     _logger         = logger;
 }
Пример #23
0
 public ServiceController(IServicesManager <Services> servicesManager,
                          IServicePhotoManager <ServicePhoto> servicePhotoManager, ICommentManager <Comments> commentManager,
                          IOrderManager <Order> orderManager)
 {
     _servicesManager     = servicesManager;
     _servicePhotoManager = servicePhotoManager;
     _commentManager      = commentManager;
     _orderManager        = orderManager;
 }
 public CommentsController(IAuthManager authManager, IUserRepository userRepository, ILogRepository logRepository, ISiteRepository sitetRepository, ICommentManager commentManager, ICommentRepository commentRepository)
 {
     _authManager       = authManager;
     _userRepository    = userRepository;
     _logRepository     = logRepository;
     _sitetRepository   = sitetRepository;
     _commentManager    = commentManager;
     _commentRepository = commentRepository;
 }
Пример #25
0
 public HomeController(IMalwareManager malwareManager, ILogger <HomeController> log, ICommentManager commentManager,
                       IScreenShotManager screenShotManager, UserManager <ApplicationUser> userManager)
 {
     this.malwareManager    = malwareManager;
     this.commentManager    = commentManager;
     this.screenShotManager = screenShotManager;
     _userManager           = userManager;
     _log = log;
 }
Пример #26
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (commentManager != null)
     {
         commentManager.Dispose();
         commentManager = null;
     }
 }
Пример #27
0
 public NewsController(
     IArticleManager articleManager,
     ICommentManager commentManager,
     ILogger <NewsController> logger)
 {
     _articleManager = articleManager;
     _commentManager = commentManager;
     _logger         = logger;
 }
 /// <summary>
 /// Constructor for resolving Cloud manager, Post manager from DI container.
 /// </summary>
 /// <param name="cloudManager">Cloud Manager.</param>
 /// <param name="postManager">Post Manager.</param>
 /// <param name="commentManager">Comment Manager.</param>
 /// <param name="logger">Serilog.</param>
 public CommentSynchronizationService(ICloudManager cloudManager,
                                      IPostManager postManager,
                                      ICommentManager commentManager,
                                      ILogger <PostSynchronizationService> logger)
 {
     _cloudManager   = cloudManager ?? throw new ArgumentNullException(nameof(cloudManager));
     _postManager    = postManager ?? throw new ArgumentNullException(nameof(postManager));
     _commentManager = commentManager ?? throw new ArgumentNullException(nameof(commentManager));
     _logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public TicketController(IAppContext context, ITicketTypeManager typeMan, ITicketLogger tickLog, ICommentManager comManage, ITicketManager tikMan, IUserManager userMan, IDtoConverter dtoConver, IHtmlValidator htmlValid)
 {
     db             = context;
     typeManager    = typeMan;
     ticketLogger   = tickLog;
     commentManager = comManage;
     ticketManager  = tikMan;
     userManager    = userMan;
     dtoConverter   = dtoConver;
     htmlValidator  = htmlValid;
 }
Пример #30
0
        public RequsitionController(IRequsitionManager requisition, IEmployeeManager employee, IManagerManager manager, IVehicleManager vehicle, ICommentManager comment, IDriverStatusManager driverStatus, IVehicleStatusManager vehicleStatus)
        {
            this._requisitionManager = requisition;
            this._employeeManager    = employee;
            this.commentManager      = comment;
            this._managerManager     = manager;
            this.vehicleManager      = vehicle;

            this.driverStatusManager  = driverStatus;
            this.vehicleStatusManager = vehicleStatus;
        }
Пример #31
0
 public ManageController(IAuthManager authManager, IPathManager pathManager, ISiteRepository sitetRepository, IUserRepository userRepository, IContentRepository contentRepository, ICommentManager formManager, ISettingsRepository formRepository, ICommentRepository dataRepository)
 {
     _authManager        = authManager;
     _pathManager        = pathManager;
     _sitetRepository    = sitetRepository;
     _userRepository     = userRepository;
     _contentRepository  = contentRepository;
     _commentManager     = formManager;
     _settingsRepository = formRepository;
     _commentRepository  = dataRepository;
 }
Пример #32
0
 public ExerciseManagementController(IExerciseManager exerciseManager, ICourseManager courseManager,
                                     UserManager <User> userManager, ICodeManager codeManager, IMapper mapper, ICommentManager commentManager, IConfiguration configuration)
 {
     this.exerciseManager = exerciseManager;
     this.courseManager   = courseManager;
     this.userManager     = userManager;
     this.commentManager  = commentManager;
     this.configuration   = configuration;
     this.mapper          = mapper;
     this.codeManager     = codeManager;
 }
 /// <summary>
 /// 构造函数
 ///</summary>
 public PostAppService(IRepository <Post, Guid> postRepository, IPostManager postManager, PostListExcelExporter postListExcelExporter, IEnumExtensionsAppService enumExtensionsAppService, ITagManager tagManager, ICommentManager commentManager, IRepository <PostTag, int> postTagRepository, IBlogManager blogManager)
 {
     _postRepository           = postRepository;
     _postManager              = postManager;;
     _postListExcelExporter    = postListExcelExporter;
     _enumExtensionsAppService = enumExtensionsAppService;
     _tagManager        = tagManager;
     _commentManager    = commentManager;
     _postTagRepository = postTagRepository;
     _blogManager       = blogManager;
 }
        public CreateCommentDlgViewModel(IParticlesManager particlesManager, IBlockManager blockManager,
            ICommentManager commentManager, IEventAggregator eventAggregator)
        {
            _particlesManager = particlesManager;
            _blockManager = blockManager;
            _commentManager = commentManager;
            _eventAggregator = eventAggregator;
            AddParticleVm = new AddParticleViewViewModel(particlesManager);

            SelectBlockCommand = new DelegateCommand(() =>
            {
                var dlg = new SelectTagDlg(typeof (Guidable));
                var res = dlg.ShowDialog();
                if (res.HasValue && res.Value && dlg.Id.HasValue)
                {
                    _myGuidable = _blockManager.GetGuidableById(dlg.Id.Value);
                    OkCommand.RaiseCanExecuteChanged();
                    if (_myGuidable is Material)
                        GuidableCaption = (_myGuidable as Material).Name;
                    else if (_myGuidable is Block)
                        GuidableCaption = (_myGuidable as Block).Caption;
                }
            });

            OkCommand = new DelegateCommand<Window>((wnd) =>
            {
                var comment = _commentManager.CreateComment(Caption, _myGuidable);

                if (AddParticleVm.AddParticle)
                    if (AddParticleVm.UseNewParticle)
                    {
                        var particle = _particlesManager.CreateParticle(AddParticleVm.NewParticle.Material,
                            AddParticleVm.NewParticle.Begin, AddParticleVm.NewParticle.End);
                        _blockManager.AddParticleToBlock(comment, particle);
                        ParticleId = particle.Id;
                    }
                    else if (AddParticleVm.UseExistParticle && AddParticleVm.ExistParticle.HasValue)
                    {
                        var particle = _particlesManager.GetParticleById(AddParticleVm.ExistParticle.Value);
                        _blockManager.AddParticleToBlock(comment, particle);
                        ParticleId = particle.Id;
                    }

                _eventAggregator.GetEvent<BlockAddedEvent>().Publish(comment.Id);
                wnd.DialogResult = true;
                wnd.Close();
            }, wnd => !String.IsNullOrWhiteSpace(Caption) && _myGuidable != null);
        }
        public ConspEditorMainViewModel(IIdeaManager ideaManager, IMaterialManager materialManager,
            ITagsManager tagsManager, IParticlesManager particlesManager, IBlockManager blockManager,
            IEventAggregator eventAggregator, IRelationManager relationManager, ICommentManager commentManager)
        {
            _ideaManager = ideaManager;
            _materialManager = materialManager;
            _tagsManager = tagsManager;
            _particlesManager = particlesManager;
            _blockManager = blockManager;
            _eventAggregator = eventAggregator;
            _relationManager = relationManager;
            _commentManager = commentManager;
            Bookmarks = new List<string>();

            _eventAggregator.GetEvent<MaterialUpdatedEvent>().Subscribe(MaterialUpdated);
        }
 public CommentsApiController(ICommentManager commentManager, IUserAuthHelper userSessionHelper)
 {
     this.commentManager = commentManager;
     this.userSessionHelper = userSessionHelper;
 }
 public CommentService(IPlatformDataSource dataSource, ICommentManager commentManager)
 {
     this._dataSource = dataSource;
     this._commentManager = commentManager;
 }
 public IssueApiController(IssueManager issueManager,ICommentManager commentManager)
 {
     this.issueManager = issueManager;
     this.commentManager = commentManager;
 }
 public CommentApiController(IssueManager issueManager, ICommentManager commentManager,IUserSessionHelper userSessionHelper)
 {
     this.issueManager = issueManager;
     this.commentManager = commentManager;
     this.userSessionHelper = userSessionHelper;
 }
 public CommentsController()
 {
     this.commentManager = new CommentManager();
 }