Esempio n. 1
0
 public IndexModel(ActQueries actQueries, ActCommands actCommands, ContentQueries contentQueries, ContentCommands contentCommands)
 {
     this.actQueries      = actQueries;
     this.actCommands     = actCommands;
     this.contentQueries  = contentQueries;
     this.contentCommands = contentCommands;
 }
 public UpdateItemCommandHandler(
     ContentfulClientsFactory factory,
     ContentsConverter converter,
     ContentQueries query)
 {
     _factory   = factory ?? throw new ArgumentNullException(nameof(factory));
     _converter = converter ?? throw new ArgumentNullException(nameof(converter));
     _query     = query ?? throw new ArgumentNullException(nameof(query));
 }
Esempio n. 3
0
		public CommonForumInfo()
		{
			_forumQueries = DependencyResolver.Current.GetService<ForumQueries>();
			_orgQueries = DependencyResolver.Current.GetService<OrganizationQueries>();
			_categoryQueries = DependencyResolver.Current.GetService<CategoryQueries>();
			_userQueries = DependencyResolver.Current.GetService<UserQueries>();
			_contentQueries = DependencyResolver.Current.GetService<ContentQueries>();
			_tagQueries = DependencyResolver.Current.GetService<TagQueries>();
		}
Esempio n. 4
0
 public ContentsService(
     IMediator mediator,
     ContentQueries query,
     IProfiler profiler,
     ContentsConverter converter)
 {
     _mediator  = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _query     = query ?? throw new ArgumentNullException(nameof(query));
     _profiler  = profiler ?? throw new ArgumentNullException(nameof(profiler));
     _converter = converter ?? throw new ArgumentNullException(nameof(converter));
 }
Esempio n. 5
0
		public ContentController(ContentQueries contentQueries)
		{
			_contentQueries = contentQueries;
		}