File tree 7 files changed +12
-22
lines changed
7 files changed +12
-22
lines changed Original file line number Diff line number Diff line change @@ -305,13 +305,13 @@ if (!($ADMTApplicationID)) {
305
305
Write-host " 📜 Prepare publish files for the application"
306
306
if (! (Test-Path ' ../Publish' )) {
307
307
Write-host " 🔵 Preparing Admin Site"
308
- dotnet publish ../ src/ AdminSite/ AdminSite.csproj - c debug - o ../ Publish/ AdminSite/ - v q
308
+ dotnet publish ../ src/ AdminSite/ AdminSite.csproj - c release - o ../ Publish/ AdminSite/ - v q
309
309
310
310
Write-host " 🔵 Preparing Metered Scheduler"
311
- dotnet publish ../ src/ MeteredTriggerJob/ MeteredTriggerJob.csproj - c debug - o ../ Publish/ AdminSite/ app_data/ jobs/ triggered/ MeteredTriggerJob/ - v q -- runtime win- x64 -- self- contained true
311
+ dotnet publish ../ src/ MeteredTriggerJob/ MeteredTriggerJob.csproj - c release - o ../ Publish/ AdminSite/ app_data/ jobs/ triggered/ MeteredTriggerJob/ - v q -- runtime win- x64 -- self- contained true
312
312
313
313
Write-host " 🔵 Preparing Customer Site"
314
- dotnet publish ../ src/ CustomerSite/ CustomerSite.csproj - c debug - o ../ Publish/ CustomerSite/ - v q
314
+ dotnet publish ../ src/ CustomerSite/ CustomerSite.csproj - c release - o ../ Publish/ CustomerSite/ - v q
315
315
316
316
Write-host " 🔵 Zipping packages"
317
317
Compress-Archive - Path ../ Publish/ AdminSite/* - DestinationPath ../ Publish/ AdminSite.zip - Force
Original file line number Diff line number Diff line change @@ -92,11 +92,11 @@ Write-host "#### Database Deployment complete ####"
92
92
93
93
Write-host " #### Deploying new code ####"
94
94
95
- dotnet publish ../ src/ AdminSite/ AdminSite.csproj - v q - c debug - o ../ Publish/ AdminSite/
95
+ dotnet publish ../ src/ AdminSite/ AdminSite.csproj - v q - c release - o ../ Publish/ AdminSite/
96
96
Write-host " ## Admin Portal built"
97
- dotnet publish ../ src/ MeteredTriggerJob/ MeteredTriggerJob.csproj - v q - c debug - o ../ Publish/ AdminSite/ app_data/ jobs/ triggered/ MeteredTriggerJob -- runtime win- x64 -- self- contained true
97
+ dotnet publish ../ src/ MeteredTriggerJob/ MeteredTriggerJob.csproj - v q - c release - o ../ Publish/ AdminSite/ app_data/ jobs/ triggered/ MeteredTriggerJob -- runtime win- x64 -- self- contained true
98
98
Write-host " ## Metered Scheduler to Admin Portal Built"
99
- dotnet publish ../ src/ CustomerSite/ CustomerSite.csproj - v q - c debug - o ../ Publish/ CustomerSite
99
+ dotnet publish ../ src/ CustomerSite/ CustomerSite.csproj - v q - c release - o ../ Publish/ CustomerSite
100
100
Write-host " ## Customer Portal Built"
101
101
102
102
Compress-Archive - Path ../ Publish/ CustomerSite/* - DestinationPath ../ Publish/ CustomerSite.zip - Force
@@ -121,3 +121,5 @@ Write-host "## Deployed code to Customer Portal"
121
121
122
122
Remove-Item - Path ../ Publish - recurse - Force
123
123
Write-host " #### Code deployment complete ####"
124
+
125
+ Write-host " #### Warning: If the upgrade is to >=7.5.0, MeterScheduler feature is pre-enabled through DB config instead of the App Service. Please update the App config accordingly. ####"
Original file line number Diff line number Diff line change @@ -77,8 +77,7 @@ public void ConfigureServices(IServiceCollection services)
77
77
Resource = this . Configuration [ "SaaSApiConfiguration:Resource" ] ,
78
78
SaaSAppUrl = this . Configuration [ "SaaSApiConfiguration:SaaSAppUrl" ] ,
79
79
SignedOutRedirectUri = this . Configuration [ "SaaSApiConfiguration:SignedOutRedirectUri" ] ,
80
- TenantId = this . Configuration [ "SaaSApiConfiguration:TenantId" ] ?? Guid . Empty . ToString ( ) ,
81
- SupportMeteredBilling = Convert . ToBoolean ( this . Configuration [ "SaaSApiConfiguration:supportmeteredbilling" ] )
80
+ TenantId = this . Configuration [ "SaaSApiConfiguration:TenantId" ] ?? Guid . Empty . ToString ( )
82
81
} ;
83
82
var knownUsers = new KnownUsersModel ( )
84
83
{
Original file line number Diff line number Diff line change 19
19
// "signedoutredirecturi": "",
20
20
// "fulfillmentapiversion": "2018-08-31",
21
21
// "adauthenticationendpoint": "https://login.microsoftonline.com",
22
- // "saasappurl": "",
23
- // "supportmeteredbilling": true
22
+ // "saasappurl": ""
24
23
// },
25
24
//"connectionstrings": {
26
25
// "defaultconnection": ""
Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ static void Main (string[] args)
36
36
ClientSecret = configuration [ "SaaSApiConfiguration:ClientSecret" ] ,
37
37
GrantType = configuration [ "SaaSApiConfiguration:GrantType" ] ,
38
38
Resource = configuration [ "SaaSApiConfiguration:Resource" ] ,
39
- TenantId = configuration [ "SaaSApiConfiguration:TenantId" ] ,
40
- SupportMeteredBilling = Convert . ToBoolean ( configuration [ "SaaSApiConfiguration:SupportMeteredBilling" ] )
39
+ TenantId = configuration [ "SaaSApiConfiguration:TenantId" ]
41
40
} ;
42
41
43
42
var creds = new ClientSecretCredential ( config . TenantId . ToString ( ) , config . ClientId . ToString ( ) , config . ClientSecret ) ;
Original file line number Diff line number Diff line change 6
6
"clientid" : " " ,
7
7
"clientsecret" : " " ,
8
8
"resource" : " " ,
9
- "adauthenticationendpoint" : " https://login.microsoftonline.com" ,
10
- "supportmeteredbilling" : true
9
+ "adauthenticationendpoint" : " https://login.microsoftonline.com"
11
10
},
12
11
"connectionstrings" : {
13
12
"defaultconnection" : " "
Original file line number Diff line number Diff line change @@ -96,14 +96,6 @@ public class SaaSApiClientConfiguration
96
96
/// </value>
97
97
public string SaaSAppUrl { get ; set ; }
98
98
99
- /// <summary>
100
- /// Gets or sets the saas metered billing support.
101
- /// </summary>
102
- /// <value>
103
- /// True or false.
104
- /// </value>
105
- public bool SupportMeteredBilling { get ; set ; }
106
-
107
99
/// <summary>
108
100
/// Initializes or Gets the current run environment. Set to "development" or "production" is assumed.
109
101
/// </summary>
You can’t perform that action at this time.
0 commit comments