Skip to content

Commit 4232654

Browse files
committed
Parameter fixes
1 parent 8508071 commit 4232654

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Architecture/CodeFactory.Architecture.Blazor.Server/CSharpFile/RefreshRestService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public RefreshRestService(ILogger logger, IVsActions vsActions) : base(logger, v
112112
/// <summary>
113113
/// Suffix to append to the service client name.
114114
/// </summary>
115-
public static string ServiceClientNameAppendSuffix = "ServiceClientNameAppendPrefix";
115+
public static string ServiceClientNameAppendSuffix = "ServiceClientNameAppendSuffix";
116116

117117

118118
/// <summary>

src/Automation/CodeFactory.Automation.NDF.Logic/AspNetCore/Service/Rest/Json/RestJsonCSharpAbstractionBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ public static async Task<CsInterface> RefreshCSharpAbstractionContractAsync(this
4242
throw new CodeFactoryException("Cannot load the abstraction contract project, cannot refresh the abstraction contract.");
4343

4444
CsSource contractSource = (contractFolder != null
45-
? (await contractFolder.FindCSharpSourceByInterfaceNameAsync(sourceContract.Name))?.SourceCode
46-
: (await contractProject.FindCSharpSourceByInterfaceNameAsync(sourceContract.Name))?.SourceCode)
45+
? (await contractFolder.FindCSharpSourceByInterfaceNameAsync(contractName))?.SourceCode
46+
: (await contractProject.FindCSharpSourceByInterfaceNameAsync(contractName))?.SourceCode)
4747
?? await source.CreateCSharpAbstractionContractAsync(contractName, sourceContract, contractProject, contractFolder);
4848

4949
return await source.UpdateCSharpAbstractionContractAsync(sourceContract, contractSource);

src/Automation/CodeFactory.Automation.NDF.Logic/AspNetCore/Service/Rest/Json/RestJsonServiceBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static async Task<CsClass> RefreshJsonRestService(this IVsActions source,
6262
await source.AddSupportRestClassesAsync(modelProject);
6363
await source.AddJsonServiceExtensionsAsync(serviceProject);
6464

65-
var serviceFormattedName = $"{logicContract.Name.GenerateCSharpFormattedClassName()}Controller";
65+
var serviceFormattedName = $"{serviceName}Controller";
6666

6767
CsSource serviceSource = (await serviceFolder.FindCSharpSourceByClassNameAsync(serviceFormattedName))?.SourceCode
6868
?? await source.CreateJsonRestServiceAsync(serviceName,logicContract, serviceProject, serviceFolder);

0 commit comments

Comments
 (0)