public KeyFrame GetLastFrame(Guid deviceId) { BcDevices bcDevices = Enumerable.FirstOrDefault <BcDevices>((IEnumerable <BcDevices>)ExtractorServer.AllDevices, (Func <BcDevices, bool>)(d => d.Id == deviceId)); if (bcDevices == null) { return((KeyFrame)null); } return(bcDevices.GetKeyFrame()); }