From d30f42728875271201961b8bda8b1c00b9524c1b Mon Sep 17 00:00:00 2001 From: Phillip Hoff Date: Fri, 23 Jul 2021 10:21:57 -0700 Subject: [PATCH] Give bindings default names. --- src/Microsoft.Tye.Core/BindingBuilder.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Tye.Core/BindingBuilder.cs b/src/Microsoft.Tye.Core/BindingBuilder.cs index 202710f2..a8cb2135 100644 --- a/src/Microsoft.Tye.Core/BindingBuilder.cs +++ b/src/Microsoft.Tye.Core/BindingBuilder.cs @@ -2,12 +2,14 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using System; + namespace Microsoft.Tye { public sealed class BindingBuilder { - public string? Name { get; set; } + public string? Name { get; set; } = Guid.NewGuid().ToString(); public string? ConnectionString { get; set; } public int? Port { get; set; } public int? ContainerPort { get; set; }