Ejemplo 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));
 }
Ejemplo 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>();
		}
Ejemplo 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));
 }
Ejemplo n.º 5
0
		public ContentController(ContentQueries contentQueries)
		{
			_contentQueries = contentQueries;
		}