Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserController"/> class.
        /// </summary>
        /// <param name="loggerService">Logger Service</param>
        /// <param name="userService">User Service</param>
        /// <param name="tripService">Trip Service</param>
        /// <param name="postService">Post Service</param>
        public UserController(
            ILoggerService loggerService,
            IUserService userService,
            ITripService tripService,
            IPostService postService)
            : base(loggerService)
        {
            if(userService == null)
            {
                throw new ArgumentNullException("User Service, User Controller");
            }

            if (tripService == null)
            {
                throw new ArgumentNullException("Trip Service, User Controller");
            }

            if (postService == null)
            {
                throw new ArgumentNullException("Post Service, User Controller");
            }

            this.userService = userService;
            this.tripService = tripService;
            this.postService = postService;
        }
Пример #2
0
        public PostPartHandler(IRepository<PostPartRecord> repository, 
            IPostService postService, 
            IThreadService threadService, 
            IForumService forumService,
            IClock clock) {
            _postService = postService;
            _threadService = threadService;
            _forumService = forumService;
            _clock = clock;

            Filters.Add(StorageFilter.For(repository));

            OnGetDisplayShape<PostPart>(SetModelProperties);
            OnGetEditorShape<PostPart>(SetModelProperties);
            OnUpdateEditorShape<PostPart>(SetModelProperties);

            OnCreated<PostPart>((context, part) => UpdateCounters(part));
            OnPublished<PostPart>((context, part) => { 
                UpdateCounters(part);
                UpdateThreadVersioningDates(part);
            });
            OnUnpublished<PostPart>((context, part) => UpdateCounters(part));
            OnVersioned<PostPart>((context, part, newVersionPart) => UpdateCounters(newVersionPart));
            OnRemoved<PostPart>((context, part) => UpdateCounters(part));

            OnRemoved<ThreadPart>((context, b) =>
                _postService.Delete(context.ContentItem.As<ThreadPart>()));

            OnIndexing<PostPart>((context, postPart) => context.DocumentIndex
                                                    .Add("body", postPart.Record.Text).RemoveTags().Analyze()
                                                    .Add("format", postPart.Record.Format).Store());
        }
Пример #3
0
 public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, 
     ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService = topicService;
     _postService = postService;
 }
Пример #4
0
		protected internal ModeratorController(ITopicService topicService, IForumService forumService, IPostService postService, IModerationLogService moderationLogService)
		{
			_topicService = topicService;
			_forumService = forumService;
			_postService = postService;
			_moderationLogService = moderationLogService;
		}
Пример #5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="context"></param>
 /// <param name="settingsService"> </param>
 /// <param name="emailService"> </param>
 /// <param name="localizationService"> </param>
 /// <param name="activityService"> </param>
 /// <param name="privateMessageService"> </param>
 /// <param name="membershipUserPointsService"> </param>
 /// <param name="topicNotificationService"> </param>
 /// <param name="voteService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="categoryNotificationService"> </param>
 /// <param name="loggingService"></param>
 /// <param name="uploadedFileService"></param>
 /// <param name="postService"></param>
 /// <param name="pollVoteService"></param>
 /// <param name="pollAnswerService"></param>
 /// <param name="pollService"></param>
 /// <param name="topicService"></param>
 /// <param name="favouriteService"></param>
 /// <param name="categoryService"></param>
 public MembershipService(IMVCForumContext context, ISettingsService settingsService,
     IEmailService emailService, ILocalizationService localizationService, IActivityService activityService,
     IPrivateMessageService privateMessageService, IMembershipUserPointsService membershipUserPointsService,
     ITopicNotificationService topicNotificationService, IVoteService voteService, IBadgeService badgeService,
     ICategoryNotificationService categoryNotificationService, ILoggingService loggingService, IUploadedFileService uploadedFileService,
     IPostService postService, IPollVoteService pollVoteService, IPollAnswerService pollAnswerService,
     IPollService pollService, ITopicService topicService, IFavouriteService favouriteService, 
     ICategoryService categoryService, IPostEditService postEditService)
 {
     _settingsService = settingsService;
     _emailService = emailService;
     _localizationService = localizationService;
     _activityService = activityService;
     _privateMessageService = privateMessageService;
     _membershipUserPointsService = membershipUserPointsService;
     _topicNotificationService = topicNotificationService;
     _voteService = voteService;
     _badgeService = badgeService;
     _categoryNotificationService = categoryNotificationService;
     _loggingService = loggingService;
     _uploadedFileService = uploadedFileService;
     _postService = postService;
     _pollVoteService = pollVoteService;
     _pollAnswerService = pollAnswerService;
     _pollService = pollService;
     _topicService = topicService;
     _favouriteService = favouriteService;
     _categoryService = categoryService;
     _postEditService = postEditService;
     _context = context as MVCForumContext;
 }
Пример #6
0
 static void ShowPostHashes(IPostService postService)
 {
     foreach (var hash in postService.GetPostHashes())
     {
         System.Console.WriteLine(hash.Meta + " " + hash.Url);
     }
 }
Пример #7
0
 static void ShowPosts(IPostService postService)
 {
     foreach (var post in postService.GetAll())
     {
         System.Console.WriteLine(post.Url + " " + post.Time.Year + " " + String.Join(",", post.Tags.Select(t => t.Name)));
     }
 }
Пример #8
0
        public PostPartHandler(IRepository<PostPartRecord> repository, 
            IPostService postService, 
            IThreadService threadService, 
            IForumService forumService)
        {
            _postService = postService;
            _threadService = threadService;
            _forumService = forumService;

            T = NullLocalizer.Instance;

            Filters.Add(StorageFilter.For(repository));

            OnGetDisplayShape<PostPart>(SetModelProperties);
            OnGetEditorShape<PostPart>(SetModelProperties);
            OnUpdateEditorShape<PostPart>(SetModelProperties);

            OnCreated<PostPart>((context, part) => UpdatePostCount(part));
            OnPublished<PostPart>((context, part) => UpdatePostCount(part));
            OnUnpublished<PostPart>((context, part) => UpdatePostCount(part));
            OnVersioned<PostPart>((context, part, newVersionPart) => UpdatePostCount(newVersionPart));
            OnRemoved<PostPart>((context, part) => UpdatePostCount(part));

            OnRemoved<ThreadPart>((context, b) =>
                _postService
                    .Get(context.ContentItem.As<ThreadPart>())
                    .ToList()
                    .ForEach(post => context.ContentManager.Remove(post.ContentItem)));

            OnIndexing<PostPart>((context, postPart) => context.DocumentIndex
                                                    .Add("body", postPart.Record.Text).RemoveTags().Analyze()
                                                    .Add("format", postPart.Record.Format).Store());
        }
Пример #9
0
 static void ShowDeliciousDates(IPostService postService, string tag)
 {
     foreach (var date in postService.GetDeliciousDates(tag))
     {
         System.Console.WriteLine(date.Date + " " + date.Count);
     }
 }
Пример #10
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="unitOfWorkManager"> </param>
 /// <param name="membershipService"> </param>
 /// <param name="localizationService"></param>
 /// <param name="settingsService"> </param>
 /// <param name="badgeService"> </param>
 /// <param name="loggingService"> </param>
 public AdminBadgeController(IBadgeService badgeService, IPostService postService, ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, 
     IMembershipService membershipService, ILocalizationService localizationService, ISettingsService settingsService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
 {
     _badgeService = badgeService;
     _postService = postService;
 }
		private void GetPostService(UnitOfWork uow, out ICategoryService categoryService, out IForumService forumService, out ITopicService topicService, out IPostService postService) {
			ICategoryRepository cateRepo = new CategoryRepository(uow);
			IForumRepository forumRepo = new ForumRepository(uow);
			ITopicRepository topicRepo = new TopicRepository(uow);
			IPostRepository postRepo = new PostRepository(uow);
			IForumConfigurationRepository configRepo = new ForumConfigurationRepository(uow);

			IState request = new DummyRequest();

			ILogger logger = new ConsoleLogger();

			IUserRepository userRepo = new UserRepository(uow);
			User user = userRepo.Create(new User {
				Name = "D. Ummy",
				ProviderId = "12345678",
				FullName = "Mr. Doh Ummy",
				EmailAddress = "[email protected]",
				Culture = "th-TH",
				TimeZone = "GMT Standard Time"
			});

			List<IEventSubscriber> subscribers = new List<IEventSubscriber>();

			IEventPublisher eventPublisher = new EventPublisher(subscribers, logger, request);
			IUserProvider userProvider = new DummyUserProvider(user);
			IPermissionService permService = new PermissionService();
			IForumConfigurationService confService = new ForumConfigurationService(configRepo);

			categoryService = new CategoryService(userProvider, cateRepo, eventPublisher, logger, permService);
			forumService = new ForumService(userProvider, cateRepo, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService);
			topicService = new TopicService(userProvider, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService, confService);
			postService = new PostService(userProvider, forumRepo, topicRepo, postRepo, eventPublisher, logger, permService, confService);
		}
 public WidgetController(ILog logger, IConfigurationService configurationService, IPostService postService, ICategoryService categoryService, IPageService pageService)
     : base(logger, configurationService)
 {
     this.postService = postService;
     this.categoryService = categoryService;
     this.pageService = pageService;
 }
Пример #13
0
 public PostAdminController(ICategoryService categoryService, IPostService p, ITagService ts, IUserService us)
 {
     this.categoryService = categoryService;
     this.postService = p;
     this.tagService = ts;
     this.userService = us;
 }
Пример #14
0
        public ThreadPartHandler(IRepository<ThreadPartRecord> repository, 
            IPostService postService,
            IThreadService threadService,
            IForumService forumService,
            IContentManager contentManager)
        {
            _postService = postService;
            _threadService = threadService;
            _forumService = forumService;
            _contentManager = contentManager;

            Filters.Add(StorageFilter.For(repository));

            OnGetDisplayShape<ThreadPart>(SetModelProperties);
            OnGetEditorShape<ThreadPart>(SetModelProperties);
            OnUpdateEditorShape<ThreadPart>(SetModelProperties);

            OnActivated<ThreadPart>(PropertySetHandlers);
            OnLoading<ThreadPart>((context, part) => LazyLoadHandlers(part));
            OnCreated<ThreadPart>((context, part) => UpdateForumPartCounters(part));
            OnPublished<ThreadPart>((context, part) => UpdateForumPartCounters(part));
            OnUnpublished<ThreadPart>((context, part) => UpdateForumPartCounters(part));
            OnVersioning<ThreadPart>((context, part, newVersionPart) => LazyLoadHandlers(newVersionPart));
            OnVersioned<ThreadPart>((context, part, newVersionPart) => UpdateForumPartCounters(newVersionPart));
            OnRemoved<ThreadPart>((context, part) => UpdateForumPartCounters(part));

            OnRemoved<ForumPart>((context, b) =>
                _threadService
                    .Get(context.ContentItem.As<ForumPart>())
                    .ToList()
                    .ForEach(thread => context.ContentManager.Remove(thread.ContentItem)));
        }
Пример #15
0
 public ReportPostAdminController(
     IOrchardServices orchardServices,
     IForumService forumService,
     IThreadService threadService,
     IPostService postService,
     ISiteService siteService,
     IShapeFactory shapeFactory,
     IAuthorizationService authorizationService,
     IAuthenticationService authenticationService,
     ISubscriptionService subscriptionService,
     IReportPostService reportPostService,
     ICountersService countersService
     )
 {
     _orchardServices = orchardServices;
     _forumService = forumService;
     _threadService = threadService;
     _postService = postService;
     _siteService = siteService;
     _subscriptionService = subscriptionService;
     _authorizationService = authorizationService;
     _authenticationService = authenticationService;
     _reportPostService = reportPostService;
     _countersService = countersService;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
Пример #16
0
 public ValuesController(IUserService userSvc, IAlbumService albumSvc, IPostService postSvc, IPictureService pictureSvc)
 {
     _userSvc = userSvc;
     _albumSvc = albumSvc;
     _postSvc = postSvc;
     _pictureSvc = pictureSvc;
 }
        public ActionResult Index(int id = 1)
        {
            var search = this.Request.QueryString["search"];
            var page = id;
            var allItemsCount = this.posts.PublicPostsCount();

            var totalPages = (int)Math.Ceiling(allItemsCount / (decimal)9);
            var skip = (page - 1) * 9;

            List<PostViewModel> posts;

            if (search != null)
            {
                posts = this.Mapper.Map<IEnumerable<PostViewModel>>(this.posts
                .GetAllPublic()
                .Where(x => x.Title.Contains(search))).ToList<PostViewModel>();
            }
            else
            {
                posts = this.Mapper.Map<IEnumerable<PostViewModel>>(this.posts
               .GetAllPublic(9, page)).ToList<PostViewModel>();
            }

            var resultModel = new IndexPageableModel
            {
                CurrentPage = page,
                TotalPages = totalPages,
                Posts = posts
            };

            return this.View(resultModel);
        }
Пример #18
0
 public PostAppService(IPostService postService, ICommentService commentService, ICategoryService categoryService, IPostValidation postValidation)
 {
     this.postService = postService;
     this.commentService = commentService;
     this.categoryService = categoryService;
     this.postValidation = postValidation;
 }
Пример #19
0
 public PostAppService()
 {
     this.postValidation = ValidationFactory.GetPostValidation();
     this.postService = ServiceFactory.GetPostService(RepositoryFactory.GetPostRepository(), this.postValidation);
     this.commentService = ServiceFactory.GetCommentService(RepositoryFactory.GetCommentRepository(), null);
     this.categoryService = ServiceFactory.GetCategoryService(RepositoryFactory.GetCategoryRepository(), null);
 }        
Пример #20
0
        public PostPartHandler(IRepository<PostPartRecord> repository, 
            IPostService postService, 
            IClock clock,
            IReportPostService reportPostService,
            ICountersService countersService,
            ISubscriptionService subscriptionService

            ) {
            _postService = postService;
            _clock = clock;
            _reportPostService = reportPostService;
            _countersService = countersService;
            _subscriptionService = subscriptionService;

            Filters.Add(StorageFilter.For(repository));

            OnGetDisplayShape<PostPart>(SetModelProperties);
            OnGetEditorShape<PostPart>(SetModelProperties);
            OnUpdateEditorShape<PostPart>(SetModelProperties);

            OnCreated<PostPart>((context, part) => _countersService.UpdateCounters(part));

            OnPublished<PostPart>((context, part) => {
                _countersService.UpdateCounters(part);
                UpdateThreadVersioningDates(part);
                SendNewPostNotification(part);

                //for purposes of 'last read' need to know the last valid post to the thread.  The last time the user read the thread is tracked
                //and is compared to the lastest posts in the thread to determine if the thread has unread posts.
                if (!part.IsInappropriate)
                {
                    part.ThreadPart.LastestValidPostDate = part.As<CommonPart>().PublishedUtc.Value;
                }
            });
            OnUnpublished<PostPart>((context, part) => _countersService.UpdateCounters(part));
            OnVersioned<PostPart>((context, part, newVersionPart) => _countersService.UpdateCounters(newVersionPart));
            OnRemoved<PostPart>((context, part) =>
            {
                _countersService.UpdateCounters(part); 

                                                    //going to leave the history record for historic purposes
                                                    // RemoveReports(part); 
                                                    });

            OnRemoved<ThreadPart>((context, b) =>
                _postService.Delete(context.ContentItem.As<ThreadPart>()));

            
            OnIndexing<PostPart>((context, postPart) => context.DocumentIndex        
                                                    .Add("body", postPart.Record.Text).RemoveTags().Analyze()
                                                    .Add("format", postPart.Record.Format).Store()
                                                    .Add("forumsHomeId", postPart.ThreadPart.ForumPart.ForumCategoryPart.ForumsHomePagePart.Id)
                                                    .Add("categoryId", postPart.ThreadPart.ForumPart.ForumCategoryPart.Id)
                                                    .Add("forumId", postPart.ThreadPart.ForumPart.Id)
                                                    .Add("threadId", postPart.ThreadPart.Id)
                                                    );

            OnIndexing<ThreadPart>((context, threadPart) => context.DocumentIndex.Add("Title", threadPart.As<TitlePart>().Title ));
          
        }
Пример #21
0
 public PostController(IPostService service, ITagService ts, ICommentService commentService, IUserService us)
 {
     this.postService = service;
     this.tagService = ts;
     this.userService = us;
     this.commentService = commentService;
 }
Пример #22
0
        public PostController(IPostService service)
        {
            if (service == null)
                throw new ArgumentNullException("service cannot be null");

            PostService = service;
        }
 public PostController(ILog logger, IConfigurationService configurationService, IPostService postService, ICategoryService categoryService, IUrlBuilder urlBuilder)
     : base(logger, configurationService)
 {
     this.postService = postService;
     this.categoryService = categoryService;
     this.urlBuilder = urlBuilder;
 }
Пример #24
0
 public PostController(IPostService postService, IDashboardService dashboardService, IBlogService blogService, ILogger logger)
     : base(logger)
 {
     _postService = postService;
     _dashboardService = dashboardService;
     _blogService = blogService;
 }
Пример #25
0
 public PostsController(IPostService postService, ITagService tagService, ICategoryService catService, IUserService userService)
 {
     this.postService = postService;
     this.tagService = tagService;
     this.catService = catService;
     this.userService = userService;
 }
Пример #26
0
 public PostAdminController(IPostService postService, IUserService userService, IAuthenticationService authenticationService, ICategoryService categoryService)
 {
     _postService = postService;
     _userService = userService;
     _authenticationService = authenticationService;
     _categoryService = categoryService;
 }
Пример #27
0
        public SubscriptionController(
            IOrchardServices orchardServices,
            IForumService forumService,
            IThreadService threadService,
            IPostService postService,
            ISiteService siteService,
            IShapeFactory shapeFactory,
            IAuthorizationService authorizationService,
            IAuthenticationService authenticationService,
            ISubscriptionService subscriptionService,
            IThreadLastReadService threadLastReadService
            )
        {
            _orchardServices = orchardServices;
            _forumService = forumService;
            _threadService = threadService;
            _postService = postService;
            _siteService = siteService;
            _subscriptionService = subscriptionService;
            _authorizationService = authorizationService;
            _authenticationService = authenticationService;
            _threadLastReadService = threadLastReadService;

            T = NullLocalizer.Instance;
            Shape = shapeFactory;
        }
Пример #28
0
 public AtomController(IUserService userService, IPostService postService, ILogger logger, ISyndicationFeedService syndicationFeedService)
     : base(logger)
 {
     _userService = userService;
     _postService = postService;
     _syndicationFeedService = syndicationFeedService;
 }
Пример #29
0
        public ShoutboxHub(Work<IOrchardServices> orchardServices, IHelpers helpers, IShoutboxService shoutboxService, IPostService postService)
        {
            if (orchardServices == null)
            {
                throw new ArgumentNullException("orchardServices");
            }

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

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

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

            _OrchardServices = orchardServices;
            _Helpers = helpers;
            _ShoutboxService = shoutboxService;
            _PostService = postService;
        }
Пример #30
0
        public PostPartHandler(IRepository<PostPartRecord> repository, 
            IPostService postService, 
            IThreadService threadService, 
            IForumService forumService)
        {
            _postService = postService;
            _threadService = threadService;
            _forumService = forumService;

            Filters.Add(StorageFilter.For(repository));

            OnGetDisplayShape<PostPart>(SetModelProperties);
            OnGetEditorShape<PostPart>(SetModelProperties);
            OnUpdateEditorShape<PostPart>(SetModelProperties);

            OnCreated<PostPart>((context, part) => UpdatePostCount(part));
            OnPublished<PostPart>((context, part) => UpdatePostCount(part));
            OnUnpublished<PostPart>((context, part) => UpdatePostCount(part));
            OnVersioned<PostPart>((context, part, newVersionPart) => UpdatePostCount(newVersionPart));
            OnRemoved<PostPart>((context, part) => UpdatePostCount(part));

            OnRemoved<ThreadPart>((context, b) =>
                _postService
                    .Get(context.ContentItem.As<ThreadPart>())
                    .ToList()
                    .ForEach(post => context.ContentManager.Remove(post.ContentItem)));
        }
Пример #31
0
 public TagsController(IPostService postService, IMapper mapper)
 {
     this.postService = postService;
     this.mapper      = mapper;
 }
Пример #32
0
 public IndexModel(IPostService postService)
 {
     PostService = postService;
 }
 public PostItemViewModel(IMvxNavigationService navigationService, BasePostViewModel basePostViewModel)
 {
     _navigationService = navigationService;
     Post         = basePostViewModel;
     _postService = Mvx.Resolve <IPostService>();
 }
Пример #34
0
 public PostController(IPostService service,
                       ILog log)
 {
     _service = service;
     _log     = log;
 }
Пример #35
0
 public ViewCategoryMenu(ILabelFactory labelFactory, IPostService postService, ICommandFactory commandFactory)
 {
     this.labelFactory   = labelFactory;
     this.postService    = postService;
     this.commandFactory = commandFactory;
 }
Пример #36
0
 public PostController(FlyonDbContext context, IPostService postService)
 {
     _context     = context;
     _postService = postService;
 }
Пример #37
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommentController"/> class.
 /// </summary>
 public CommentController()
 {
     this.cacheService   = ServiceLocator.Instance.GetService <ICacheService>();
     this.commentService = ServiceLocator.Instance.GetService <ICommentService>();
     this.postService    = ServiceLocator.Instance.GetService <IPostService>();
 }
Пример #38
0
 public HomeController(IPostService postService)
 {
     _postService = postService;
 }
Пример #39
0
 public AddReplyMenu(ILabelFactory labelFactory, ITextAreaFactory textAreaFactory, IForumReader reader, ICommandFactory commandFactory, IPostService postService)
 {
     this.labelFactory    = labelFactory;
     this.textAreaFactory = textAreaFactory;
     this.forumReader     = reader;
     this.commandFactory  = commandFactory;
     this.postService     = postService;
 }
Пример #40
0
 public HomeController(ILogger <HomeController> logger, IPostService postService)
 {
     this.logger      = logger;
     this.postService = postService;
 }
Пример #41
0
 public CommentController(IPostService postService, ICommentService commentService)
 {
     _postService    = postService;
     _commentService = commentService;
 }
Пример #42
0
 public AdminController(IPostService postService)
 {
     repo = postService;
 }
Пример #43
0
 public ImmoController(IPostService postService)
 {
     _postService = postService;
 }
Пример #44
0
 public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
                        ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService) :
     base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
 {
     _topicService = topicService;
     _postService  = postService;
 }
Пример #45
0
 public ModerateController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
                           ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IPostService postService,
                           ITopicService topicService, ICategoryService categoryService, ICacheService cacheService)
     : base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
 {
     _postService     = postService;
     _topicService    = topicService;
     _categoryService = categoryService;
 }
Пример #46
0
 public PostAdminController(IPostService postService)
 {
     Guard.WhenArgument(postService, "postService").IsNull().Throw();
     this.postService = postService;
 }
 public HomeController(IAccountService accountService, IPostService postService)
 {
     this.accountService = accountService;
     this.postService    = postService;
 }
Пример #48
0
 public AdminPostItemViewModel(IMvxNavigationService navigationService, BasePostViewModel basePostViewModel, IMvxAsyncCommand <AdminPostItemViewModel> removeCommand, IPostService postService, IToastSerivce toastSerivce)
 {
     _navigationService = navigationService;
     Post           = basePostViewModel;
     _removeCommand = removeCommand;
 }
Пример #49
0
 public SubmitCommand(ISession session, IPostService postService)
 {
     this.session     = session;
     this.postService = postService;
 }
 public PostsPageViewModel(IPostService postsService)
 {
     _postsService         = postsService;
     ReloadPostsCommand    = new Command(async() => await ReloadPosts());
     OnPostSelectedCommand = new Command(OnPostSelected);
 }
Пример #51
0
 public PostsController(IPostService postService, IUserService userService, IMapper mapper)
 {
     _postService = postService;
     _mapper      = mapper;
     _userService = userService;
 }
Пример #52
0
 public TrackingOrderController(ITrackingOrderService trackingOrderService, IOrderService orderService, IPostService postService,
                                IUserService userService, ITransactionService transactionService, INotificationService notificationService)
 {
     this.orderService         = orderService;
     this.userService          = userService;
     this.postService          = postService;
     this.transactionService   = transactionService;
     this.trackingOrderService = trackingOrderService;
     this.notificationService  = notificationService;
 }
Пример #53
0
 public PostController(IPostService postService, IMapper mapper)
 {
     _postService = postService;
     _mapper      = mapper;
 }
Пример #54
0
 public PerfilController(IPostService postService)
 {
     _postService = postService;
 }
 public ElasticSearchPostsService(SimpleDbContext dbContext, IPostService posts, IHazActivityStreamPipe pipe) : base(pipe)
 {
     _dbContext = dbContext;
     _posts     = posts;
 }
Пример #56
0
        public PostController(IMapper mapper, IPostService postService)
        {
            this._mapper = mapper;

            this._postService = postService;
        }
Пример #57
0
 public PostsController(IPostService service)
 {
     _service = service;
 }
Пример #58
0
 public PostController(IPostService postService, ICategoryService categoriesService, UserManager <ApplicationUser> userManager)
 {
     this.postService       = postService;
     this.categoriesService = categoriesService;
     this.userManager       = userManager;
 }
Пример #59
0
 public PostController(IPostService postService)
 {
     _postService = postService;
 }
Пример #60
0
 public PostBLL(IPostService postService, IForumService forumService, UserManager <ApplicationUser> userManager)
 {
     _postService  = postService;
     _userManager  = userManager;
     _forumService = forumService;
 }