public IActionResult Post([FromBody] ProcessPost processPost) { var processPath = ReadProcessPath(processPost.ProcessName); if (processPost.Start) { _processService.StartProcess(processPath); } else { _processService.StopProcess(processPath); } return(Ok()); }
private void DoPost(Memory <byte> data) { ProcessPost?.Invoke(data); }
public PostManager() { users = ProcessUser.ProcessUsers("users.csv"); pets = ProcessPet.ProcessPets("pets.csv"); posts = ProcessPost.ProcessPosts("post.csv"); }