コード例 #1
0
 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);
 }
コード例 #2
0
 public PostCommentHostedService(PostCommentOptions options,
                                 IPostEntityRequestHandler <PostCommentModel, GetCommentModel> requestHandler)
 {
     _options        = options;
     _requestHandler = requestHandler;
 }