public PostArticleRequest(PostArticleOptions opts) { CreateVerbosityCommand = () => new SetVerbosityCommand(opts); CreateSignInCommand = () => new SignInCommand(opts); CreatePostCommand = () => new PostArticleCommand(opts.ToPostModel()); CreateLogCommand = postedArticle => new LogArticleCommand(postedArticle, opts); CreateWriteCommand = postedArticle => new WriteArticleCommand(postedArticle, opts); }
public PostArticleHostedService(PostArticleOptions options, IPostEntityRequestHandler <PostArticleModel, GetArticleModel> postAggreg) { _options = options; _requestHandler = postAggreg; }