Exemplo n.º 1
0
        private async Task DefaultLoadAsync()
        {
            logSreamSettingsListError = null;
            try
            {
                var logStreams = await TrackService.GetTrackLogStreamSettingsAsync();

                logSreamSettingsList.Clear();
                if (logStreams?.LogStreamSettings?.Count > 0)
                {
                    foreach (var ls in logStreams?.LogStreamSettings)
                    {
                        logSreamSettingsList.Add(new GeneralLogStreamSettingsViewModel(ls));
                    }
                }
            }
            catch (TokenUnavailableException)
            {
                await(OpenidConnectPkce as TenantOpenidConnectPkce).TenantLoginAsync();
            }
            catch (Exception ex)
            {
                logSreamSettingsListError = ex.Message;
            }
        }