CustomActions.KbInstalledChecker.SetReturnValue C# (CSharp) Method

SetReturnValue() private method

private SetReturnValue ( bool isUpdateInstalled, string returnVar ) : void
isUpdateInstalled bool
returnVar string
return void
        private void SetReturnValue(bool isUpdateInstalled, string returnVar)
        {
            var updateInstalledVal = isUpdateInstalled ? "1" : "0";
            _session[returnVar] = updateInstalledVal;
            _session.Log($"Set property '{returnVar}' to '{updateInstalledVal}'");
        }
    }