Browse Source
Update SettingDefinitionSerializer.cs
pull/16979/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
8 additions and
2 deletions
-
modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/SettingDefinitionSerializer.cs
|
|
|
@ -45,9 +45,15 @@ public class SettingDefinitionSerializer : ISettingDefinitionSerializer, ITransi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public virtual Task<List<SettingDefinitionRecord>> SerializeAsync(IEnumerable<SettingDefinition> settings) |
|
|
|
public virtual async Task<List<SettingDefinitionRecord>> SerializeAsync(IEnumerable<SettingDefinition> settings) |
|
|
|
{ |
|
|
|
return Task.FromResult(settings.Select(SerializeAsync).Select(t => t.Result).ToList()); |
|
|
|
var records = new List<SettingDefinitionRecord>(); |
|
|
|
foreach (var setting in settings) |
|
|
|
{ |
|
|
|
records.Add(await SerializeAsync(setting)); |
|
|
|
} |
|
|
|
|
|
|
|
return records; |
|
|
|
} |
|
|
|
|
|
|
|
protected virtual string SerializeProviders(ICollection<string> providers) |
|
|
|
|