コード例 #1
0
 public EntryController(ILogger <EntryController> logger, IEntryService entryService, IEntryRatingService entryRatingService, UserManager <User> userManager)
 {
     _userManager        = userManager;
     _logger             = logger;
     _entryService       = entryService;
     _entryRatingService = entryRatingService;
 }
コード例 #2
0
 public EntryViewModel(EntryReference entryReference, IEntryService entryService, SynchronizationContext synchronizationContext)
 {
     _entryReference         = entryReference;
     _entryService           = entryService;
     _synchronizationContext = synchronizationContext;
     AttachmentPreviews      = new ObservableCollection <AttachmentPreviewViewModel>();
 }
コード例 #3
0
 public EntryController(IEntryService entryService, ICommentService commentService, IBlogService blogService, ITagService tagService)
 {
     _entryService = entryService;
     _commentService = commentService;
     _blogService = blogService;
     _tagService = tagService;
 }
コード例 #4
0
 public EntryController(IEntryService entryService, IPrincipal principal, ISecurityService securityService)
 {
     _entryService    = entryService;
     _principal       = principal;
     _securityService = securityService;
     _userId          = securityService.GetUserId(principal.Identity.Name);
 }
コード例 #5
0
ファイル: ActivityProjector.cs プロジェクト: peternunn/Folium
        public ActivityProjector(
            IDbService dbService,
            IPersistStreams persistStreams,
            IEntryService entryService,
            IUserService userService,
            ILogger <ActivityProjector> logger,
            IOptions <Configuration> applicationConfiguration) : base(persistStreams, dbService)
        {
            var conventionalDispatcher = new ConventionBasedEventDispatcher(c => Checkpoint = c.ToSome(), commit => {
                logger.LogWarning($"Commit contains null events. CommitId:{commit.CommitId}, CommitSequence:{commit.CommitSequence}, StreamId:{commit.StreamId}, StreamRevision:{commit.StreamRevision}, EventCount:{commit.Events.Count}, AggregateId {commit.AggregateId()}");
            })
                                         .FirstProject <EntryCreated>(OnEntryCreated)
                                         .ThenProject <EntryUpdated>(OnEntryUpdated)
                                         .ThenProject <EntryRemoved>(OnEntryRemoved)
                                         .ThenProject <PlacementCreated>(OnPlacementCreated)
                                         .ThenProject <PlacementUpdated>(OnPlacementUpdated)
                                         .ThenProject <PlacementRemoved>(OnPlacementRemoved)
                                         .ThenProject <SkillSelfAssessmentCreated>(OnSelfAssessmentCreated)
                                         .ThenProject <SkillSelfAssessmentUpdated>(OnSelfAssessmentUpdated)
                                         .ThenProject <SkillSelfAssessmentRemoved>(OnSelfAssessmentRemoved)
                                         .ThenProject <EntryShared>(OnEntryShared)
                                         .ThenProject <EntryCollaboratorRemoved>(OnEntryCollaboratorRemoved)
                                         .ThenProject <EntryCommentCreated>(OnEntryCommentCreated);

            _conventionProjector      = new ConventionBasedCommitProjecter(this, dbService, conventionalDispatcher);
            _entryService             = entryService;
            _userService              = userService;
            _applicationConfiguration = applicationConfiguration;
        }
コード例 #6
0
 public MySummaryExpensesViewModel(IDialogService dialogService,
                                   INavigationService navigationService,
                                   ILoggerService loggerService,
                                   IEntryService entryService) : base(dialogService, navigationService, loggerService)
 {
     _entryService = entryService;
 }
コード例 #7
0
 public EntriesController(IMapper mapper, IEntryService entryService)
 {
     this.mapper = mapper
                   ?? throw new ArgumentNullException(nameof(mapper));
     this.entryService = entryService
                         ?? throw new ArgumentNullException(nameof(entryService));
 }
コード例 #8
0
 public EntryPermissionService(IEntryService entryService, IUserRepository userRepository,
                               IBoxRepository boxRepository)
 {
     _entryService   = entryService;
     _userRepository = userRepository;
     _boxRepository  = boxRepository;
 }
コード例 #9
0
        protected override async Task ArrangeTest()
        {
            await base.ArrangeTest();

            _entryService   = GetService <IEntryService>();
            _journalService = GetService <IJournalService>();
        }
コード例 #10
0
 public EntryApplicationService(
     IMapper mapper,
     IEntryService entryService)
 {
     _entryService = entryService;
     _mapper       = mapper;
 }
コード例 #11
0
 public AdministratorController(IBlogService blogService, IEntryService entryService, IUserService userService, ITagService tagService, ICommentService commentService)
 {
     _blogService = blogService;
     _entryService = entryService;
     _userService = userService;
     _tagService = tagService;
     _commentService = commentService;
 }
コード例 #12
0
        public EntryServiceTest()
        {
            _service = new EntryService();
            _journal = Helpers.GetJournal();
            var entries = Helpers.GetEntries(4, _journal.Id);

            Helpers.AddEntriesToJournal(_journal, entries);
        }
コード例 #13
0
 public CreateEnytryHandler(IBusClient busClient,
                            IEntryService entryService,
                            ILogger <CreateEnytryHandler> logger)
 {
     _busClient    = busClient;
     _entryService = entryService;
     _logger       = logger;
 }
コード例 #14
0
 public PhoneBookController(
     IEntryService entryService,
     IPhoneBookService phoneBookService,
     IPhoneBookRepository phoneBookRepository)
 {
     _entryService        = entryService;
     _phoneBookService    = phoneBookService;
     _phoneBookRepository = phoneBookRepository;
 }
コード例 #15
0
 public HomeController(ILogger <PostController> logger, IPostService postService, IPostCategoryService postCategoryService, IEntryService entryService, IAccountService accountService, IRestSharpService restSharpService)
 {
     _logger              = logger;
     _postService         = postService;
     _postCategoryService = postCategoryService;
     _entryService        = entryService;
     _accountService      = accountService;
     _restSharpService    = restSharpService;
 }
コード例 #16
0
 public EntryController(
     ITokenService tokenService,
     IUserService userService,
     IEntryService entryService)
 {
     _tokenService = tokenService;
     _userService  = userService;
     _entryService = entryService;
 }
コード例 #17
0
ファイル: HomeAssembler.cs プロジェクト: JefClaes/Docary
 public HomeAssembler(
     IEntryService entryService, 
     ITimeService timeService,
     IUserSettingsService userSettingService)
 {
     _entryService = entryService;
     _timeService = timeService;
     _userSettingsService = userSettingService;
 }
コード例 #18
0
 public EntryService(ApiDbContext context, ILoggerFactory loggerFactory, IMapper mapper
                     , IEntryService defaultEntryService, ICompetitionGameService gameService)
 {
     _mapper = mapper;
     _logger = loggerFactory.CreateLogger <GameService>();
     _defaultEntryService = defaultEntryService;
     _gameService         = gameService;
     _context             = context;
 }
 public DefaultEventService(ApiDbContext context, ILoggerFactory loggerFactory, IMapper mapper,
                            IEntryService defaultEntryService, IRandomDrawEventService randomDrawEventService)
 {
     _context                = context;
     _mapper                 = mapper;
     _logger                 = loggerFactory.CreateLogger <DefaultEventService>();
     _defaultEntryService    = defaultEntryService;
     _randomDrawEventService = randomDrawEventService;
 }
コード例 #20
0
        public CreateBookEntryViewModel(IEntryService entryService, IEventAggregator eventAggregator, IThumbnailGeneratorService thumbnailGeneratorService)
        {
            _entryService              = entryService;
            _eventAggregator           = eventAggregator;
            _thumbnailGeneratorService = thumbnailGeneratorService;
            _eventAggregator.GetEvent <MediaReceivedMessage>().Subscribe(HandleMediaReceived);
            _eventAggregator.GetEvent <InAppInfoMessage>().Subscribe(HandleInAppInfoMessageReceived);

            Attachments  = new ObservableCollection <MediaDataViewModel>();
            InfoMessages = new ObservableCollection <string>();
        }
コード例 #21
0
ファイル: UsersController.cs プロジェクト: peternunn/Folium
 public UsersController(
     ILogger <UsersController> logger,
     IUserService userService,
     ISkillService skillService,
     IEntryService entryService)
 {
     _logger       = logger;
     _userService  = userService;
     _skillService = skillService;
     _entryService = entryService;
 }
コード例 #22
0
 public GameService(ILoggerFactory loggerFactory, IMapper mapper,
                    IGameService defaultGameService, IEntryService defaultEntryService,
                    IEventService defaultEventService, IChainService defaultChainService)
 {
     _mapper              = mapper;
     _logger              = loggerFactory.CreateLogger <GameService>();
     _defaultGameService  = defaultGameService;
     _defaultEntryService = defaultEntryService;
     _defaultEventService = defaultEventService;
     _defaultChainService = defaultChainService;
 }
コード例 #23
0
 public BannerWidgetService(
     IRepository<SeasonPartRecord> seasonRepository,
     IOrchardServices services,
     IEntryService entryService,
     ISeasonService seasonService)
 {
     _seasonRepository = seasonRepository;
     Services = services;
     _entryService = entryService;
     _seasonService = seasonService;
 }
コード例 #24
0
ファイル: KarmaController.cs プロジェクト: Hary309/nanoblog
 public KarmaController(
     IEntryKarmaService entryKarmaService,
     ICommentKarmaService commentKarmaService,
     IEntryService entryService,
     ICommentService commentService
     )
 {
     this.entryKarmaService   = entryKarmaService;
     this.commentKarmaService = commentKarmaService;
     this.entryService        = entryService;
     this.commentService      = commentService;
 }
コード例 #25
0
 public MarksController(IMarkService markService,
                        IEntryService entryService,
                        IEventService eventService,
                        UserManager <UserEntity> userManager,
                        IAuthService authService)
 {
     _markService  = markService;
     _entryService = entryService;
     _eventService = eventService;
     _userManager  = userManager;
     _authService  = authService;
 }
コード例 #26
0
ファイル: EntriesController.cs プロジェクト: peternunn/Folium
 public EntriesController(
     ILogger <EntriesController> logger,
     IEntryService entryService,
     ISkillService skillService,
     ISelfAssessmentService selfAssessmentService,
     IUserService userService)
 {
     _logger                = logger;
     _entryService          = entryService;
     _skillService          = skillService;
     _selfAssessmentService = selfAssessmentService;
     _userService           = userService;
 }
コード例 #27
0
ファイル: Services.cs プロジェクト: strogo/nblog
 public Services(
     IEntryService entryService,
     IUserService userService,
     IConfigService configService,
     IMessageService messageService,
     ICloudService cloudService)
 {
     Entry = entryService;
     User = userService;
     Config = configService;
     Message = messageService;
     Cloud = cloudService;
 }
コード例 #28
0
 public CategoryController(
     IOrchardServices services,
     ISeasonService seasonService,
     ICategoryService categoryService,
     IEntryService entryService,
     ISiteService siteService,
     IShapeFactory shapeFactory) {
     _services = services;
     _seasonService = seasonService;
     _categoryService = categoryService;
     _entryService = entryService;
     _siteService = siteService;
     Shape = shapeFactory;
 }
コード例 #29
0
ファイル: EntriesController.cs プロジェクト: hnidboubker/Logs
        public EntriesController(IEntryService entryService, IAuthenticationProvider authenticationProvider)
        {
            if (entryService == null)
            {
                throw new ArgumentNullException(nameof(entryService));
            }

            if (authenticationProvider == null)
            {
                throw new ArgumentNullException(nameof(authenticationProvider));
            }

            this.entryService           = entryService;
            this.authenticationProvider = authenticationProvider;
        }
コード例 #30
0
 public RootQuery(IEntryService entryService)
 {
     Name = "entries";
     FieldAsync <ListGraphType <EntryType> >(
         "entries",
         arguments: new QueryArguments(new QueryArgument <NonNullGraphType <IdGraphType> > {
         Name = "userId"
     }),
         resolve: async context =>
     {
         var id = context.GetArgument <Guid>("userId");
         return(await context.TryAsyncResolve(
                    async c => await entryService.GetUserEntries(id)));
     });
 }
コード例 #31
0
 public Services(
     IEntryService entryService,
     IUserService userService,
     IConfigService configService,
     IMessageService messageService,
     ICloudService cloudService,
     IThemeService themeService)
 {
     Entry   = entryService;
     User    = userService;
     Config  = configService;
     Message = messageService;
     Cloud   = cloudService;
     Theme   = themeService;
 }
コード例 #32
0
 public EntriesController(
     IWebHostEnvironment environment,
     UserManager <ApplicationUser> userManager,
     IEntryService entryService,
     ITopicService topicService,
     ISitemapService sitemapService,
     IConfiguration configuration,
     IMemoryCache cache) : base(environment)
 {
     _entryService   = entryService;
     _topicService   = topicService;
     _userManager    = userManager;
     _sitemapService = sitemapService;
     _configuration  = configuration;
     _cache          = cache;
 }
コード例 #33
0
ファイル: Services.cs プロジェクト: skyline9002/NBlog
		public Services(
			IEntryService entryService,
			IUserService userService,
			IConfigService configService,
			IMessageService messageService,
			ICloudService cloudService,
			IThemeService themeService,
			IAboutService aboutService,
			IImageService imageService)
		{
			Entry = entryService;
			User = userService;
			Config = configService;
			Message = messageService;
			Cloud = cloudService;
			Theme = themeService;
			About = aboutService;
			Image = imageService;
		}
コード例 #34
0
        public EntryPartHandler(IRepository<EntryPartRecord> repository, ICategoryService categoryService, IEntryService entryService, RequestContext requestContext) {

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

            _categoryService = categoryService;
            _entryService = entryService;

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

            OnCreated<EntryPart>((context, part) => UpdateCategoryEntryCount(part));
            OnPublished<EntryPart>((context, part) => UpdateCategoryEntryCount(part));
            OnUnpublished<EntryPart>((context, part) => UpdateCategoryEntryCount(part));
            OnVersioned<EntryPart>((context, part, newVersionPart) => UpdateCategoryEntryCount(newVersionPart));
            OnRemoved<EntryPart>((context, part) => UpdateCategoryEntryCount(part));

            OnRemoved<CategoryPart>(
                (context, b) =>
                entryService.Get(context.ContentItem.As<CategoryPart>()).ToList().ForEach(
                    entry => context.ContentManager.Remove(entry.ContentItem)));
        }
コード例 #35
0
 public EntryType(IEntryRepository entryRepository, IEntryService entryService)
 {
     Field(e => e.WineName);
     Field(e => e.Country);
     Field(e => e.Region);
     Field(e => e.Producer);
     Field(e => e.Notes);
     Field(e => e.Vintage);
     Field(e => e.Tags);
     Field(e => e.Id, type: typeof(IdGraphType));
     Field(e => e.UserId, type: typeof(IdGraphType));
     Field(e => e.DateAdded, type: typeof(DateGraphType));
     Field(e => e.LastModified, type: typeof(DateGraphType));
     Field <ListGraphType <VarietalType> >("varietals", resolve: context =>
     {
         return(entryRepository.GetEntryVarietals(context.Source.Id));
     });
     Field <StringGraphType>("wineLabel", resolve: context =>
     {
         return(entryService.GetEntryWineLabelBase64(context.Source.Id));
     });
 }
コード例 #36
0
 public EntryServiceTests(IEntryService entryService)
 {
     _entryService = entryService;
 }
コード例 #37
0
ファイル: TagController.cs プロジェクト: nancy-bree/Bloghost
 public TagController(ITagService tagService, IEntryService entryService)
 {
     _tagService = tagService;
     _entryService = entryService;
 }
コード例 #38
0
ファイル: EntryController.cs プロジェクト: sharonrussell/Blog
 public EntryController(IEntryService service)
 {
     _service = service;
 }
コード例 #39
0
ファイル: EntryController.cs プロジェクト: JefClaes/Docary
 public EntryController(IEntryService entryService)
 {
     _entryService = entryService;
 }
        // TODO ADD PERMISSIONS ON THESE METHODS

        public EntriesController(IEntryService entryService, IMapper mapperService)
        {
            _entryService  = entryService;
            _mapperService = mapperService;
        }
コード例 #41
0
 public EntryController(IEntryService entryService)
 {
     _entryService = entryService;
 }
コード例 #42
0
ファイル: EntryController.cs プロジェクト: JefClaes/Docary
 public EntryController(IEntryService entryService)
     : base(entryService)
 {
 }
コード例 #43
0
        public void SetUp()
        {
            _entryRepository = new Mock<IEntryRepository>();

            _entryService = new EntryService(_entryRepository.Object);
        }
 public WebChangedNotificationListViewModel(IEntryService service)
 {
     Entries = service.SelectEntries ();
 }
コード例 #45
0
 public CommentController(ICommentService commentService, IEntryService entryService, IUserService userService)
 {
     _commentService = commentService;
     _entryService = entryService;
     _userService = userService;
 }
コード例 #46
0
        public MainViewModel(IEntryService entryService)
        {
            _entryService = entryService;

        }
コード例 #47
0
ファイル: BlogController.cs プロジェクト: nancy-bree/Bloghost
 public BlogController(IBlogService blogService, IEntryService entryService)
 {
     _blogService = blogService;
     _entryService = entryService;
 }
コード例 #48
0
ファイル: EntryController.cs プロジェクト: sybrix/EdFi-App
 public EntryController(ISessionStateProvider sessionStateProvider, IEntryService entryService)
 {
     this.sessionStateProvider = sessionStateProvider;
     this.entryService = entryService;
 }
コード例 #49
0
 public HomeController()
 {
     _entryService = new EntryService();
     _validationService = new ValidationService();
 }