| 14 | using namespace ipc; |
| 15 | |
| 16 | ActionServer::ActionServer(Service* pSvc, PresentMon* pPmon, std::optional<std::string> pipeName) |
| 17 | { |
| 18 | // if we have a pipe name override, that indicates we don't need special permissions |
| 19 | auto sec = pipe::DuplexPipe::GetSecurityString(pipeName ? |
| 20 | pipe::SecurityMode::Child : pipe::SecurityMode::Service); |
| 21 | // construct (and start) the server |
| 22 | pImpl_ = std::make_shared<act::SymmetricActionServer<acts::ActionExecutionContext>>( |
| 23 | acts::ActionExecutionContext{ .pSvc = pSvc, .pPmon = pPmon }, |
| 24 | pipeName.value_or(gid::defaultControlPipeName), |
| 25 | 2, std::move(sec) |
| 26 | ); |
| 27 | } |
| 28 | } |
nothing calls this directly
no outgoing calls
no test coverage detected