|
|
|
@ -6,16 +6,16 @@ namespace Volo.Abp.Cli.ProjectBuilding.Templates.App; |
|
|
|
public class AppTemplateChangeConsoleTestClientPortSettingsStep : ProjectBuildPipelineStep |
|
|
|
{ |
|
|
|
public string RemoteServicePort { get; } |
|
|
|
public string IdentityServerPort { get; } |
|
|
|
public string AuthServerPort { get; } |
|
|
|
|
|
|
|
/// <param name="remoteServicePort"></param>
|
|
|
|
/// <param name="identityServerPort">Assumed same as the <paramref name="remoteServicePort"/> if leaved as null.</param>
|
|
|
|
/// <param name="authServerPort">Assumed same as the <paramref name="remoteServicePort"/> if leaved as null.</param>
|
|
|
|
public AppTemplateChangeConsoleTestClientPortSettingsStep( |
|
|
|
string remoteServicePort, |
|
|
|
string identityServerPort = null) |
|
|
|
string authServerPort = null) |
|
|
|
{ |
|
|
|
RemoteServicePort = remoteServicePort; |
|
|
|
IdentityServerPort = identityServerPort ?? remoteServicePort; |
|
|
|
AuthServerPort = authServerPort ?? remoteServicePort; |
|
|
|
} |
|
|
|
|
|
|
|
public override void Execute(ProjectBuildContext context) |
|
|
|
@ -23,6 +23,6 @@ public class AppTemplateChangeConsoleTestClientPortSettingsStep : ProjectBuildPi |
|
|
|
context |
|
|
|
.GetFile("/aspnet-core/test/MyCompanyName.MyProjectName.HttpApi.Client.ConsoleTestApp/appsettings.json") |
|
|
|
.ReplaceText("44300", RemoteServicePort) |
|
|
|
.ReplaceText("44301", IdentityServerPort); |
|
|
|
.ReplaceText("44301", AuthServerPort); |
|
|
|
} |
|
|
|
} |
|
|
|
|