Ejemplo n.º 1
0
        private async Task <int> SaveSettingInnerAsync(MFWebApiClient client, MFWebApiOption option, CancellationToken token)
        {
            var result = 0;

            if (client.TokenRefreshed)
            {
                var setting = client.WebApiSetting;
                setting.UpdateBy = option.LoginUserId;
                result           = await addWebApiSettingQueryProcessor.SaveAsync(setting, token);

                client.TokenRefreshed = false;
            }
            return(result);
        }
Ejemplo n.º 2
0
 public async Task <int> SaveAsync(WebApiSetting setting,
                                   CancellationToken token = default(CancellationToken))
 => await addWebApiSettingQueryProcessor.SaveAsync(setting, token);