File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
src/WebJobs.Script.WebHost Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,14 @@ public async Task<IActionResult> Assign([FromBody] EncryptedHostAssignmentContex
48
48
[ HttpPost ]
49
49
[ Route ( "admin/instance/assign2" ) ]
50
50
[ Authorize ( Policy = PolicyNames . AdminAuthLevel ) ]
51
- public IActionResult Assign2 ( [ FromBody ] EncryptedHostAssignmentContext assignmentContext )
51
+ public IActionResult Assign2 ( [ FromBody ] HostAssignmentContextMan assignmentContext )
52
52
{
53
53
_logger . LogDebug ( $ "Starting container assignment for host : { Request ? . Host } ") ;
54
54
55
55
_logger . LogDebug ( $ "Worker assignment context is: { JsonConvert . SerializeObject ( assignmentContext ) } ") ;
56
56
57
+ _logger . LogDebug ( $ "SiteName: { assignmentContext . EncryptedContext } ") ;
58
+
57
59
//_logger.LogDebug($"SiteName: {assignmentContext.SiteName}, Siteid: {assignmentContext.SiteId}");
58
60
59
61
return Ok ( ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright (c) .NET Foundation. All rights reserved.
2
+ // Licensed under the MIT License. See License.txt in the project root for license information.
3
+
4
+ using Newtonsoft . Json ;
5
+
6
+ namespace Microsoft . Azure . WebJobs . Script . WebHost . Models
7
+ {
8
+ public class HostAssignmentContextMan
9
+ {
10
+ [ JsonProperty ( "encryptedContext" ) ]
11
+ public string EncryptedContext { get ; set ; }
12
+ }
13
+ }
You can’t perform that action at this time.
0 commit comments