Example #1
0
 public PostBoardRequest(PostBoardOptions opts)
 {
     CreateVerbosityCommand = () => new SetVerbosityCommand(opts);
     CreateSignInCommand    = () => new SignInCommand(opts);
     CreatePostCommand      = () => new PostBoardCommand(opts.ToPostModel());
     CreateLogCommand       = postedBoard => new LogBoardCommand(postedBoard, opts);
     CreateWriteCommand     = postedBoard => new WriteBoardCommand(postedBoard, opts);
 }
Example #2
0
 public PostBoardHostedService(PostBoardOptions options,
                               IPostEntityRequestHandler <PostBoardModel, GetBoardModel> postAggreg)
 {
     _options        = options;
     _requestHandler = postAggreg;
 }