public PostCommentRequest(PostCommentOptions opts) { CreateVerbosityCommand = () => new SetVerbosityCommand(opts); CreateSignInCommand = () => new SignInCommand(opts); CreatePostCommand = () => new PostCommentCommand(opts.ToPostModel()); CreateLogCommand = postedComment => new LogCommentCommand(postedComment, opts); CreateWriteCommand = postedComment => new WriteCommentCommand(postedComment, opts); }
public PostCommentHostedService(PostCommentOptions options, IPostEntityRequestHandler <PostCommentModel, GetCommentModel> requestHandler) { _options = options; _requestHandler = requestHandler; }