Ejemplo n.º 1
0
		// Requests the specified firmware. tries really hard to scan and resolve as necessary
		public string Request(PathEntryCollection pathEntries, IDictionary<string, string> userSpecifications, string sysId, string firmwareId)
		{
			var resolved = Resolve(pathEntries, userSpecifications, FirmwareDatabase.LookupFirmwareRecord(sysId, firmwareId));
			if (resolved == null)
			{
				return null;
			}

			RecentlyServed.Add(new FirmwareEventArgs
			{
				SystemId = sysId,
				FirmwareId = firmwareId,
				Hash = resolved.Hash,
				Size = resolved.Size
			});

			return resolved.FilePath;
		}
Ejemplo n.º 2
0
		public ResolutionInfo Resolve(string sysId, string firmwareId)
		{
			return Resolve(FirmwareDatabase.LookupFirmwareRecord(sysId, firmwareId));
		}