Skip to content

Commit a0677ee

Browse files
author
Manikanta Nallagatla
committed
debug
1 parent c647dfa commit a0677ee

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/WebJobs.Script.WebHost/Controllers/InstanceController.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@ public async Task<IActionResult> Assign([FromBody] EncryptedHostAssignmentContex
4848
[HttpPost]
4949
[Route("admin/instance/assign2")]
5050
[Authorize(Policy = PolicyNames.AdminAuthLevel)]
51-
public IActionResult Assign2([FromBody] EncryptedHostAssignmentContext assignmentContext)
51+
public IActionResult Assign2([FromBody] HostAssignmentContextMan assignmentContext)
5252
{
5353
_logger.LogDebug($"Starting container assignment for host : {Request?.Host}");
5454

5555
_logger.LogDebug($"Worker assignment context is: {JsonConvert.SerializeObject(assignmentContext)}");
5656

57+
_logger.LogDebug($"SiteName: {assignmentContext.EncryptedContext}");
58+
5759
//_logger.LogDebug($"SiteName: {assignmentContext.SiteName}, Siteid: {assignmentContext.SiteId}");
5860

5961
return Ok();
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

0 commit comments

Comments
 (0)