Skip to content

Commit 80632ca

Browse files
fix:MappingConfigurationApi method's parameter name problem. (#589)
* fix:MappingConfigurationApi method's parameter name problem. * private method * fix:remark problem
1 parent b17e8e4 commit 80632ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Contrib/Configuration/Masa.Contrib.Configuration/Options/MasaConfigurationRelationOptions.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ public MasaConfigurationRelationOptions MappingLocal<TModel>(string? section = n
2323
/// Map Section relationship By ConfigurationApi
2424
/// </summary>
2525
/// <typeparam name="TModel"></typeparam>
26-
/// <param name="parentSection">The name of the parent section, if it is empty, it will be mounted under SectionType, otherwise it will be mounted to the specified section under SectionType</param>
26+
/// <param name="appId">Distributed Configuration Center's appId</param>
2727
/// <param name="section">The default is null, which is consistent with the mapping class name, and string.Empty when no root node exists</param>
2828
/// <param name="name"></param>
2929
/// <returns></returns>
30-
public MasaConfigurationRelationOptions MappingConfigurationApi<TModel>(string parentSection, string? section = null, string? name = null)
30+
public MasaConfigurationRelationOptions MappingConfigurationApi<TModel>(string appId, string? section = null, string? name = null)
3131
where TModel : class
32-
=> Mapping<TModel>(SectionTypes.ConfigurationApi, parentSection, section, name);
32+
=> Mapping<TModel>(SectionTypes.ConfigurationApi, appId, section, name);
3333

3434
/// <summary>
3535
/// Map Section relationship
@@ -41,7 +41,7 @@ public MasaConfigurationRelationOptions MappingConfigurationApi<TModel>(string p
4141
/// <param name="name"></param>
4242
/// <returns></returns>
4343
/// <exception cref="ArgumentOutOfRangeException"></exception>
44-
public MasaConfigurationRelationOptions Mapping<TModel>(SectionTypes sectionType, string parentSection, string? section = null, string? name = null)
44+
private MasaConfigurationRelationOptions Mapping<TModel>(SectionTypes sectionType, string parentSection, string? section = null, string? name = null)
4545
where TModel : class
4646
{
4747
name ??= Options.DefaultName;

0 commit comments

Comments
 (0)