public string GetDefaultRuntimeVersion()
        {
            if (string.IsNullOrEmpty(_defaultRuntimeVersion))
            {
                _defaultRuntimeVersion = _cliOptions.EnableDynamicInstall ?
                                         _sdkStorageVersionProvider.GetDefaultRuntimeVersion() :
                                         _onDiskVersionProvider.GetDefaultRuntimeVersion();
            }

            return(_defaultRuntimeVersion);
        }
示例#2
0
        public string GetDefaultRuntimeVersion()
        {
            if (string.IsNullOrEmpty(_defaultRuntimeVersion))
            {
                _defaultRuntimeVersion = _cliOptions.EnableDynamicInstall ?
                                         _sdkStorageVersionProvider.GetDefaultRuntimeVersion() :
                                         _onDiskVersionProvider.GetDefaultRuntimeVersion();
            }

            _logger.LogDebug("Default runtime version is {defaultRuntimeVersion}", _defaultRuntimeVersion);

            return(_defaultRuntimeVersion);
        }