public async ValueTask <bool> HasBeenSetup(SetupService setupService)
        {
            if (this._hasBeenSetup != null)
            {
                return(this._hasBeenSetup.Value);
            }

            bool hasBeenSetup = await HasBeenSetupCore(setupService);

            this._hasBeenSetup = hasBeenSetup;

            if (hasBeenSetup)
            {
                return(true);
            }

            return(false);
        }
 public RequestAppSetupState(AppSetupState appSetupState, SetupService setupService)
 {
     this._appSetupState = appSetupState;
     this._setupService  = setupService;
 }
 private static async ValueTask <bool> HasBeenSetupCore(SetupService setupService)
 {
     return((await setupService.DetermineCurrentStep()).IsDone);
 }