コード例 #1
0
        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); });
        }
コード例 #2
0
        public void execute(DICommandBaseSettings settings)
        {
            mSettings = settings;

            /*
             * Start time out mechanism
             * Enabled by default in DWProfileBaseSettings
             */
            if (settings.mEnableTimeOutMechanism)
            {
                mTimeOutHandler.PostDelayed(mTimeOutRunnable,
                                            mSettings.mTimeOutMS);
            }
        }
コード例 #3
0
 protected virtual void OnTimeOut(DICommandBaseSettings settings)
 {
     CleanAll();
 }
コード例 #4
0
 protected override void OnTimeOut(DICommandBaseSettings settings)
 {
     base.OnTimeOut(settings);
     onEMDKManagerClosed();
 }