Content-Length: 266410 | pFad | http://github.com/dotnet/tye/pull/818/commits/c9a9abf5fa1ef033b293d7376deb046b172e2d0b

58 Refactore tye dashboard api by sirh3e · Pull Request #818 · dotnet/tye · GitHub
Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Refactore tye dashboard api #818

Merged
merged 10 commits into from
Dec 1, 2020
Prev Previous commit
Next Next commit
renamed v1bindingList into v1BindingList
  • Loading branch information
sirh3e committed Nov 21, 2020
commit c9a9abf5fa1ef033b293d7376deb046b172e2d0b
23 changes: 9 additions & 14 deletions src/Microsoft.Tye.Hosting/TyeDashboardApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,15 @@ private static V1Service CreateServiceJson(Service service)
var description = service.Description;
var bindings = description.Bindings;

var v1bindingList = new List<V1ServiceBinding>();

foreach (var binding in bindings)
var v1BindingList = bindings.Select(binding => new V1ServiceBinding()
{
v1bindingList.Add(new V1ServiceBinding()
{
Name = binding.Name,
ConnectionString = binding.ConnectionString,
Port = binding.Port,
ContainerPort = binding.ContainerPort,
Host = binding.Host,
Protocol = binding.Protocol
});
}
Name = binding.Name,
ConnectionString = binding.ConnectionString,
Port = binding.Port,
ContainerPort = binding.ContainerPort,
Host = binding.Host,
Protocol = binding.Protocol
}).ToList();

var v1ConfigurationSourceList = new List<V1ConfigurationSource>();
foreach (var configSource in description.Configuration)
Expand Down Expand Up @@ -157,7 +152,7 @@ private static V1Service CreateServiceJson(Service service)

var v1ServiceDescription = new V1ServiceDescription()
{
Bindings = v1bindingList,
Bindings = v1BindingList,
Configuration = v1ConfigurationSourceList,
Name = description.Name,
Replicas = description.Replicas,
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/dotnet/tye/pull/818/commits/c9a9abf5fa1ef033b293d7376deb046b172e2d0b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy