MCPcopy Create free account
hub / github.com/M2Team/NanaBox / ComputeSystemUpdateComPort

Method ComputeSystemUpdateComPort

NanaBox/ConfigurationManager.cpp:759–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759void NanaBox::ComputeSystemUpdateComPort(
760 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,
761 std::uint32_t const& PortID,
762 std::string const& NamedPipe)
763{
764 nlohmann::json Result;
765
766 Result["ResourcePath"] = Mile::FormatString(
767 "VirtualMachine/Devices/ComPorts/%d",
768 PortID);
769 Result["RequestType"] = "Update";
770 Result["Settings"] = NanaBox::MakeHcsComPortConfiguration(NamedPipe);
771
772 Instance->Modify(winrt::to_hstring(Result.dump()));
773}
774
775void NanaBox::ComputeSystemAddNetworkAdapter(
776 winrt::com_ptr<NanaBox::ComputeSystem> const& Instance,

Callers

nothing calls this directly

Calls 1

ModifyMethod · 0.80

Tested by

no test coverage detected