Exemple #1
0
        private async Task OnLifeCycleChanged(LifecycleEventArgs eventArgs)
        {
            switch (eventArgs.State)
            {
            case Lifecycle.Start:
                await _behaviors.InvokeStart();

                break;

            case Lifecycle.Sleep:
                await _behaviors.InvokeSleep();

                break;

            case Lifecycle.Resume:
                await _behaviors.InvokeResume();

                break;

            case Lifecycle.SetupCompleted:
                await _behaviors.InvokeSetupComplete();

                break;

            default:
                break;
            }
        }
Exemple #2
0
 private async Task OnLifeCycleChanged(LifecycleEventArgs eventArgs)
 {
     _schedulerState.HandleState(eventArgs.State);
     await _lifeCycleState.HandleState(eventArgs.State);
 }