コード例 #1
0
        public (HardwareDetails, HardwareInfo[]) Reserve(Guid sessionId, HardwareId hardwareId)
        {
            var details = hardwareManager.GetDetails(hardware[hardwareId]);
            var plugin  = sessions[sessionId].Reserve(details);

            return(
                plugin.HardwareDetails,
                SetAvailability(sessionId, hardware.Values.ToList()));
        }