@ -2,17 +2,17 @@
// The .NET Foundation licenses this file to you under the MIT license.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic ;
using System.Linq ;
using System.Linq ;
using System.Text ;
using System.Text ;
using System.Text.Json ;
using System.Text.Json ;
using System.Text.Json.Serialization ;
using System.Threading.Tasks ;
using System.Threading.Tasks ;
using Microsoft.Tye.Hosting.Model ;
using Microsoft.AspNetCore.Builder ;
using Microsoft.AspNetCore.Builder ;
using Microsoft.AspNetCore.Http ;
using Microsoft.AspNetCore.Http ;
using Microsoft.AspNetCore.Routing ;
using Microsoft.AspNetCore.Routing ;
using Microsoft.Extensions.DependencyInjection ;
using Microsoft.Extensions.DependencyInjection ;
using System.Text.Json.Serialization ;
using Microsoft.Tye.Hosting.Model ;
using System.Collections.Generic ;
using Microsoft.Tye.Hosting.Model.V1 ;
using Microsoft.Tye.Hosting.Model.V1 ;
namespace Microsoft.Tye.Hosting
namespace Microsoft.Tye.Hosting
@ -95,7 +95,7 @@ namespace Microsoft.Tye.Hosting
return JsonSerializer . SerializeAsync ( context . Response . Body , serviceJson , _ options ) ;
return JsonSerializer . SerializeAsync ( context . Response . Body , serviceJson , _ options ) ;
}
}
private static V1Service CreateServiceJson ( Model . Service service )
private static V1Service CreateServiceJson ( Service service )
{
{
var description = service . Description ;
var description = service . Description ;
var bindings = description . Bindings ;
var bindings = description . Bindings ;
@ -108,7 +108,6 @@ namespace Microsoft.Tye.Hosting
{
{
Name = binding . Name ,
Name = binding . Name ,
ConnectionString = binding . ConnectionString ,
ConnectionString = binding . ConnectionString ,
AutoAssignPort = binding . AutoAssignPort ,
Port = binding . Port ,
Port = binding . Port ,
ContainerPort = binding . ContainerPort ,
ContainerPort = binding . ContainerPort ,
Host = binding . Host ,
Host = binding . Host ,