コード例 #1
0
ファイル: LogSettings.cs プロジェクト: ITfoxtec/FoxIDs
        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;
            }
        }