public Fallback(IConsole aConsole, ServiceFlash aServiceFlash) { iConsole = aConsole; iServiceFlash = aServiceFlash; iActionSectors = iServiceFlash.CreateAsyncActionSectors(); iActionSectors.EventResponse += SectorsResponse; iSectorsComplete = new ManualResetEvent(false); iActionRead = iServiceFlash.CreateAsyncActionRead(); iActionRead.EventResponse += ReadResponse; iReadComplete = new ManualResetEvent(false); iActionWrite = iServiceFlash.CreateAsyncActionWrite(); iActionWrite.EventResponse += WriteResponse; iWriteComplete = new ManualResetEvent(false); iActionSectorBytes = iServiceFlash.CreateAsyncActionSectorBytes(); iActionSectorBytes.EventResponse += SectorBytesResponse; iSectorBytesComplete = new ManualResetEvent(false); iActionEraseSector = iServiceFlash.CreateAsyncActionEraseSector(); iActionEraseSector.EventResponse += EraseSectorResponse; iEraseSectorComplete = new ManualResetEvent(false); }