Esempio n. 1
0
        public Task <InvokeResult <byte[]> > GetFirmareBinaryAsync(string firmwareId, string revisionId)
        {
            var binRepo = new FirmwareBinRepo(_adminLogger, _repoSettings.FirmwareBinSettings);

            return(binRepo.GetFirmwareBinaryAsync(GetFileName(firmwareId, revisionId)));
        }
Esempio n. 2
0
        public Task AddFirmwareRevisionAsync(string firmwareId, string revisionId, byte[] buffer)
        {
            var binRepo = new FirmwareBinRepo(_adminLogger, _repoSettings.FirmwareBinSettings);

            return(binRepo.AddBinAsync(buffer, GetFileName(firmwareId, revisionId)));
        }