예제 #1
0
        public IActionResult Post([FromBody] ProcessPost processPost)
        {
            var processPath = ReadProcessPath(processPost.ProcessName);

            if (processPost.Start)
            {
                _processService.StartProcess(processPath);
            }
            else
            {
                _processService.StopProcess(processPath);
            }

            return(Ok());
        }
예제 #2
0
 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");
 }