public GetCommentsRequest(GetCommentsOptions opts) { CreateVerbosityCommand = () => new SetVerbosityCommand(opts); CreateGetEntitiesByIdsQuery = () => new GetCommentsByIdsQuery(opts, opts); CreateLogEntityPageCommand = commentPage => new LogCommentPageCommand(commentPage, opts, opts.ToInclusionConfiguration()); CreateWriteEntityPageCommand = commentPage => new WriteCommentPageCommand(commentPage, opts, opts.ToInclusionConfiguration()); }
public GetCommentsHostedService( GetCommentsOptions options, IGetEntitiesRequestHandler <GetCommentModel, CommentInclusionConfiguration> requestAggreg ) { _options = options; _requestAggreg = requestAggreg; }