public DIProfileManagerCommand(Context aContext) : base(aContext) { mSettings = new DICommandBaseSettings() { mTimeOutMS = 200000, mEnableTimeOutMechanism = true, mCommandId = "DWProfileManagerCommand" }; mStatusListener = new StatusListener((profileManager) => { onProfileManagerInitialized(profileManager); }); mEMDKListener = new EMDKListener(() => { onEMDKManagerClosed(); }, (mEMDKManager) => { onEMDKManagerRetrieved(mEMDKManager); }); }
public void execute(DICommandBaseSettings settings) { mSettings = settings; /* * Start time out mechanism * Enabled by default in DWProfileBaseSettings */ if (settings.mEnableTimeOutMechanism) { mTimeOutHandler.PostDelayed(mTimeOutRunnable, mSettings.mTimeOutMS); } }
protected virtual void OnTimeOut(DICommandBaseSettings settings) { CleanAll(); }
protected override void OnTimeOut(DICommandBaseSettings settings) { base.OnTimeOut(settings); onEMDKManagerClosed(); }